Use fixed date as well as time in test

Otherwise this will be affected by DST.
This commit is contained in:
Kevin McConnell
2025-03-10 16:10:26 +00:00
parent d9c9166dfb
commit 6f1d200316
+1 -1
View File
@@ -3,9 +3,9 @@ require "test_helper"
class EventsControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in_as :kevin
travel_to Time.utc(2025, 1, 22, 17, 30, 0)
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