diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-01 15:14:10 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-01 15:14:10 -0800 |
commit | 85a5318c2b03bd4a9b5e7ce096207a3a9f052419 (patch) | |
tree | 1b70372b79c2d73b7cd647afd5d923004e60e661 /activerecord/test/cases/ar_schema_test.rb | |
parent | 4232454289ec12f8b21a22f764848263acd7af26 (diff) | |
download | rails-85a5318c2b03bd4a9b5e7ce096207a3a9f052419.tar.gz rails-85a5318c2b03bd4a9b5e7ce096207a3a9f052419.tar.bz2 rails-85a5318c2b03bd4a9b5e7ce096207a3a9f052419.zip |
should not to_s the possibly nil value
Diffstat (limited to 'activerecord/test/cases/ar_schema_test.rb')
-rw-r--r-- | activerecord/test/cases/ar_schema_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/ar_schema_test.rb b/activerecord/test/cases/ar_schema_test.rb index cab27167b7..df51a6e4ba 100644 --- a/activerecord/test/cases/ar_schema_test.rb +++ b/activerecord/test/cases/ar_schema_test.rb @@ -55,11 +55,11 @@ if ActiveRecord::Base.connection.supports_migrations? assert_equal "123001", rows[0]["version"] assert_equal "", rows[0]["name"] - assert_match(/^2\d\d\d-/, rows[0]["migrated_at"].to_s) + assert_not_nil(rows[0]["migrated_at"]) assert_equal "123002", rows[1]["version"] assert_equal "add_magic_power_to_unicorns", rows[1]["name"] - assert_match(/^2\d\d\d-/, rows[1]["migrated_at"].to_s) + assert_not_nil(rows[1]["migrated_at"]) end def test_define_clears_schema_migrations |