File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1406,7 +1406,7 @@ def test_condition_utc_time_interpolation_with_default_timezone_local
1406
1406
with_env_tz "America/New_York" do
1407
1407
with_timezone_config default : :local do
1408
1408
topic = Topic . first
1409
- assert_equal topic , Topic . where ( [ "written_on = ?" , topic . written_on . getutc ] ) . first
1409
+ assert_equal topic , Topic . where ( [ "written_on = ?" , topic . written_on ] ) . first
1410
1410
end
1411
1411
end
1412
1412
end
@@ -1424,7 +1424,7 @@ def test_condition_local_time_interpolation_with_default_timezone_utc
1424
1424
with_env_tz "America/New_York" do
1425
1425
with_timezone_config default : :utc do
1426
1426
topic = Topic . first
1427
- assert_equal topic , Topic . where ( [ "written_on = ?" , topic . written_on . getlocal ] ) . first
1427
+ assert_equal topic , Topic . where ( [ "written_on = ?" , topic . written_on ] ) . first
1428
1428
end
1429
1429
end
1430
1430
end
You can’t perform that action at this time.
0 commit comments