Merge pull request #6706 from amatsuda/ar_timezone_format_test_tiny_fix

TimeZone format is always /[+-]\d{2}:\d{2}/ in Ruby 1.9
This commit is contained in:
Rafael Mendonça França 2012-06-11 10:52:25 -07:00
commit 0d1f98ce65

@ -174,7 +174,7 @@ def test_native_types
assert_not_equal "Z", bob.moment_of_truth.zone
# US/Eastern is -5 hours from GMT
assert_equal Rational(-5, 24), bob.moment_of_truth.offset
assert_match(/\A-05:?00\Z/, bob.moment_of_truth.zone) #ruby 1.8.6 uses HH:MM, prior versions use HHMM
assert_match(/\A-05:00\Z/, bob.moment_of_truth.zone)
assert_equal DateTime::ITALY, bob.moment_of_truth.start
end
end