From 03e485b199bcd7d742f573a83138a461d61a749d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Guti=C3=A9rrez?= Date: Wed, 7 Aug 2024 07:20:46 +0000 Subject: [PATCH 1/2] Fix: Fix TimeZoneScheduleConverter tests Change test values to fix the test. --- spec/lib/time_zone_schedule_converter_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/lib/time_zone_schedule_converter_spec.rb b/spec/lib/time_zone_schedule_converter_spec.rb index b3fa8c77..1f8b7324 100644 --- a/spec/lib/time_zone_schedule_converter_spec.rb +++ b/spec/lib/time_zone_schedule_converter_spec.rb @@ -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 expect(subject).to eq( days: %w[Sat Tue Fri], hour: adjusted_hour From c44f0889f39223c3d58308c67ff2a09f97127400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Guti=C3=A9rrez?= Date: Wed, 7 Aug 2024 07:31:58 +0000 Subject: [PATCH 2/2] Fix: Fix linter Remove Trailing whitespace --- spec/lib/time_zone_schedule_converter_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/time_zone_schedule_converter_spec.rb b/spec/lib/time_zone_schedule_converter_spec.rb index 1f8b7324..9e4dbb7c 100644 --- a/spec/lib/time_zone_schedule_converter_spec.rb +++ b/spec/lib/time_zone_schedule_converter_spec.rb @@ -80,7 +80,7 @@ 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 expect(subject).to eq( days: %w[Sat Tue Fri], hour: adjusted_hour