Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions spec/lib/reporting/irs_verification_report_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@

def previous_week_range
one_week = 7.days
last_sunday = Time.current.utc.to_date.beginning_of_week(:sunday) - one_week
last_sunday = Time.zone.now.to_date.beginning_of_week(:sunday) - one_week
last_saturday = last_sunday + 6.days
last_sunday..last_saturday
end

describe '#overview_table' do
it 'generates the overview table with the correct data' do
travel_to Time.zone.local(2025, 8, 4) do
expected_generated_date = Time.current.utc.to_date.to_s
freeze_time do
expected_generated_date = Time.zone.now.to_date.to_s

table = report.overview_table

Expand Down