aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration_test.rb
diff options
context:
space:
mode:
authorJosh Susser <josh@hasmanythrough.com>2012-12-06 08:34:00 -0800
committerJosh Susser <josh@hasmanythrough.com>2012-12-06 09:08:10 -0800
commitdba022f3a9f1c0e256ae290ffffd332f7a9fd250 (patch)
treeb4554f0dd0f525a64862267958bdc398bf61497b /activerecord/test/cases/migration_test.rb
parent5a8f25f003f022ebc6986b20b0c10329e9553dc3 (diff)
downloadrails-dba022f3a9f1c0e256ae290ffffd332f7a9fd250.tar.gz
rails-dba022f3a9f1c0e256ae290ffffd332f7a9fd250.tar.bz2
rails-dba022f3a9f1c0e256ae290ffffd332f7a9fd250.zip
convert time to string
why is this a Time to start with?
Diffstat (limited to 'activerecord/test/cases/migration_test.rb')
-rw-r--r--activerecord/test/cases/migration_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index 60e5a29965..3a861d887f 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -71,7 +71,7 @@ class MigrationTest < ActiveRecord::TestCase
assert_equal m0_fingerprint, rows[0]["fingerprint"]
assert_equal "valid_people_have_last_names", rows[0]["name"]
rows.each do |row|
- assert_match(/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/, row["migrated_at"], "missing migrated_at")
+ assert_match(/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/, row["migrated_at"].to_s, "missing migrated_at") # sometimes a String, sometimes a Time
end
ActiveRecord::Migrator.down(MIGRATIONS_ROOT + "/valid")