aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2012-06-12 02:41:58 +0900
committerAkira Matsuda <ronnie@dio.jp>2012-06-12 02:41:58 +0900
commit73d10466463836555024b7f895032535bdce4b08 (patch)
treef2b7b8f918855b4725ffe4dd4456bfe407b36abe /activerecord/test
parent2eb4ebe308a027b1a0a64e9b0bf24d8e225590a4 (diff)
downloadrails-73d10466463836555024b7f895032535bdce4b08.tar.gz
rails-73d10466463836555024b7f895032535bdce4b08.tar.bz2
rails-73d10466463836555024b7f895032535bdce4b08.zip
TimeZone format is always /[+-]\d{2}:\d{2}/ in Ruby 1.9
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/migration/column_attributes_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/migration/column_attributes_test.rb b/activerecord/test/cases/migration/column_attributes_test.rb
index 18f8d82bfe..3014bbe273 100644
--- a/activerecord/test/cases/migration/column_attributes_test.rb
+++ b/activerecord/test/cases/migration/column_attributes_test.rb
@@ -174,7 +174,7 @@ module ActiveRecord
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