diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-01 14:59:17 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-01 14:59:17 -0800 |
commit | 7d2179608c21f1a36a3d0392f251b1ef7a2cf377 (patch) | |
tree | ca7f566684826b3f9a4a08a196aba06199af0d2f /activerecord/test/cases/ar_schema_test.rb | |
parent | 754493c790a10aa94a2bef831237e6e7bdba30ce (diff) | |
download | rails-7d2179608c21f1a36a3d0392f251b1ef7a2cf377.tar.gz rails-7d2179608c21f1a36a3d0392f251b1ef7a2cf377.tar.bz2 rails-7d2179608c21f1a36a3d0392f251b1ef7a2cf377.zip |
not all databases return dates as strings
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 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 |