From 300bffcf5ac0b158d4acfd626c9abac60abb2188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Guti=C3=A9rrez?= <41902165+martagrrez@users.noreply.github.com> Date: Mon, 12 Aug 2024 02:35:13 +0200 Subject: [PATCH] Fix: Fix TimeZoneScheduleConverter tests (#457) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix: Fix TimeZoneScheduleConverter tests Change test values to fix the test. * Fix: Fix linter Remove Trailing whitespace --------- Co-authored-by: Marta GutiƩrrez --- spec/lib/time_zone_schedule_converter_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/lib/time_zone_schedule_converter_spec.rb b/spec/lib/time_zone_schedule_converter_spec.rb index b3fa8c77..9e4dbb7c 100644 --- a/spec/lib/time_zone_schedule_converter_spec.rb +++ b/spec/lib/time_zone_schedule_converter_spec.rb @@ -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(