Skip to content

Commit 73d1046

Browse files
committed
TimeZone format is always /[+-]\d{2}:\d{2}/ in Ruby 1.9
1 parent 2eb4ebe commit 73d1046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/test/cases/migration/column_attributes_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def test_native_types
174174
assert_not_equal "Z", bob.moment_of_truth.zone
175175
# US/Eastern is -5 hours from GMT
176176
assert_equal Rational(-5, 24), bob.moment_of_truth.offset
177-
assert_match(/\A-05:?00\Z/, bob.moment_of_truth.zone) #ruby 1.8.6 uses HH:MM, prior versions use HHMM
177+
assert_match(/\A-05:00\Z/, bob.moment_of_truth.zone)
178178
assert_equal DateTime::ITALY, bob.moment_of_truth.start
179179
end
180180
end

0 commit comments

Comments
 (0)