Permalink
Browse files

Fix failing test because of Timezone difference.

  • Loading branch information...
1 parent a50865c commit 3fc53e5ea1074091b4242521d26c5aec1439f98d @anildigital anildigital committed Jun 5, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/fixtures_test.rb
View
4 activerecord/test/cases/fixtures_test.rb
@@ -589,8 +589,8 @@ def test_only_populates_columns_that_exist
end
def test_preserves_existing_fixture_data
- assert_equal(2.weeks.ago.to_date, pirates(:redbeard).created_on.to_date)
- assert_equal(2.weeks.ago.to_date, pirates(:redbeard).updated_on.to_date)
+ assert_equal(2.weeks.ago.utc.to_date, pirates(:redbeard).created_on.utc.to_date)
+ assert_equal(2.weeks.ago.utc.to_date, pirates(:redbeard).updated_on.utc.to_date)
end
def test_generates_unique_ids

0 comments on commit 3fc53e5

Please sign in to comment.