Skip to content

Commit

Permalink
Fix: Fix TimeZoneScheduleConverter tests (#457)
Browse files Browse the repository at this point in the history
* Fix: Fix TimeZoneScheduleConverter tests

Change test values to fix the test.

* Fix: Fix linter

Remove Trailing whitespace

---------

Co-authored-by: Marta Gutiérrez <marta.gutierrez@flywire.com>
  • Loading branch information
martagrrez and Marta Gutiérrez authored Aug 12, 2024
1 parent 5711d2e commit 300bffc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lib/time_zone_schedule_converter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
context 'when the adjusted hour moves behind into previous day(s)' do
let(:from_zone) { 'UTC' }
let(:to_zone) { 'Greenland' }
let(:hour) { 1 }
let(:adjusted_hour) { 24 + to_zone_offset + 1 }
let(:hour) { 0 }
let(:adjusted_hour) { 24 + to_zone_offset }

it 'returns the adjusted hour and previous day(s)' do
expect(subject).to eq(
Expand Down

0 comments on commit 300bffc

Please sign in to comment.