From c75247133e2154eef166ffeb2d9bbfbb0b6b6c3e Mon Sep 17 00:00:00 2001 From: Kevin McConnell Date: Mon, 17 Feb 2025 15:07:17 +0000 Subject: [PATCH] Fix time-dependent test This test would fail when the two timezones is covers landed on different days (like in the first few hours of UTC). So let's fix the test to a particular moment in time. --- test/controllers/events_controller_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/controllers/events_controller_test.rb b/test/controllers/events_controller_test.rb index 494fcc7e7..66833d506 100644 --- a/test/controllers/events_controller_test.rb +++ b/test/controllers/events_controller_test.rb @@ -5,6 +5,7 @@ class EventsControllerTest < ActionDispatch::IntegrationTest sign_in_as :kevin events(:layout_assignment_jz).update!(created_at: Time.current.beginning_of_day + 8.hours) + travel_to Time.current.beginning_of_day + 15.hours end test "index" do