From c046f72ca827e199a02b6421732be32a8b5a9341 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Mon, 27 Dec 2021 11:17:20 +0000 Subject: [PATCH] Fix infinite loop in datepicker selection logic --- spec/system/admin/reports_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/system/admin/reports_spec.rb b/spec/system/admin/reports_spec.rb index 0294325112..b6c0c7717c 100644 --- a/spec/system/admin/reports_spec.rb +++ b/spec/system/admin/reports_spec.rb @@ -222,10 +222,10 @@ describe ' special_instructions: shipping_instructions) } - let(:completed_at1) { Time.zone.now - 500.hours } # 500 hours in the past - let(:completed_at2) { Time.zone.now - 510.hours } # 510 hours in the past - let(:datetime_start) { Time.zone.now - 600.hours } # 600 hours in the past - let(:datetime_end) { Time.zone.now - 400.hours } # 400 hours in the past + let(:completed_at1) { Time.zone.now - 1500.hours } # 1500 hours in the past + let(:completed_at2) { Time.zone.now - 1510.hours } # 1510 hours in the past + let(:datetime_start) { Time.zone.now - 1600.hours } # 1600 hours in the past + let(:datetime_end) { Time.zone.now - 1400.hours } # 1400 hours in the past before do Timecop.travel(completed_at1) { order1.finalize! }