diff options
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/ar_schema_test.rb | 4 | ||||
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/ar_schema_test.rb b/activerecord/test/cases/ar_schema_test.rb index e007c12c33..cab27167b7 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"]) + assert_match(/^2\d\d\d-/, rows[0]["migrated_at"].to_s) 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"]) + assert_match(/^2\d\d\d-/, rows[1]["migrated_at"].to_s) end def test_define_clears_schema_migrations diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index 497391e713..37b2fea275 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -1507,7 +1507,7 @@ if ActiveRecord::Base.connection.supports_migrations? rows = conn.select_all("SELECT * FROM #{conn.quote_table_name(sm_table)}") rows.each do |row| - assert_match( /^2\d\d\d-/, row["migrated_at"], "missing migrated_at" ) + assert_match(/^2\d\d\d-/, row["migrated_at"].to_s, "missing migrated_at") end assert_equal "people_have_last_names", rows[0]["name"] assert_equal "we_need_reminders", rows[1]["name"] |