Skip to content

Commit 51603e3

Browse files
authored
Merge pull request rails#55318 from hikaru-nakayama/fix_time_with_zone_test
Fix TimeWithZoneTest to correctly test beginning_of_minute
2 parents 8299a63 + 74a8c46 commit 51603e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activesupport/test/core_ext/time_with_zone_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ def test_beginning_of_minute
861861
utc = Time.utc(2000, 1, 1, 0, 30, 10)
862862
twz = ActiveSupport::TimeWithZone.new(utc, @time_zone)
863863
assert_equal "1999-12-31 19:30:10.000000000 EST -05:00", twz.inspect
864-
assert_equal "1999-12-31 19:00:00.000000000 EST -05:00", twz.beginning_of_hour.inspect
864+
assert_equal "1999-12-31 19:30:00.000000000 EST -05:00", twz.beginning_of_minute.inspect
865865
end
866866

867867
def test_end_of_minute

0 commit comments

Comments
 (0)