Skip to content

Commit

Permalink
Fix: Fix TimeZoneScheduleConverter tests
Browse files Browse the repository at this point in the history
Change test values to fix the test.
  • Loading branch information
Marta Gutiérrez committed Aug 7, 2024
1 parent 5711d2e commit 03e485b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/lib/time_zone_schedule_converter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@
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
it 'returns the adjusted hour and previous day(s)' do

Check failure on line 83 in spec/lib/time_zone_schedule_converter_spec.rb

View workflow job for this annotation

GitHub Actions / Ruby Linting

Layout/TrailingWhitespace: Trailing whitespace detected. (https://rubystyle.guide#no-trailing-whitespace)
expect(subject).to eq(
days: %w[Sat Tue Fri],
hour: adjusted_hour
Expand Down

0 comments on commit 03e485b

Please sign in to comment.