diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-15 18:09:33 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-15 18:22:31 -0700 |
commit | 1def14309f32cc1c7d66b8625754ba2827410c96 (patch) | |
tree | 332ef658525b839eec1269a442494687ec60ad6b /activerecord/test/cases/migration_test.rb | |
parent | 8dd731bc502a07f4fb76eb2706a1f3bca479ef63 (diff) | |
download | rails-1def14309f32cc1c7d66b8625754ba2827410c96.tar.gz rails-1def14309f32cc1c7d66b8625754ba2827410c96.tar.bz2 rails-1def14309f32cc1c7d66b8625754ba2827410c96.zip |
cleaning up a bunch of parse time warnings in AR [#4186 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'activerecord/test/cases/migration_test.rb')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index dd32eeeff2..3181f27bc2 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -477,7 +477,7 @@ if ActiveRecord::Base.connection.supports_migrations? 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) #ruby 1.8.6 uses HH:MM, prior versions use HHMM assert_equal DateTime::ITALY, bob.moment_of_truth.start end end @@ -493,7 +493,7 @@ if ActiveRecord::Base.connection.supports_migrations? ActiveRecord::Migration.add_column :people, :intelligence_quotient, :tinyint Person.reset_column_information - assert_match /tinyint/, Person.columns_hash['intelligence_quotient'].sql_type + assert_match(/tinyint/, Person.columns_hash['intelligence_quotient'].sql_type) ensure ActiveRecord::Migration.remove_column :people, :intelligence_quotient rescue nil end |