Skip to content

Commit

Permalink
Merge pull request #1494 from anildigital/master
Browse files Browse the repository at this point in the history
Fix failing test because of Timezone difference.
  • Loading branch information
spastorino committed Jul 6, 2011
2 parents 6191368 + 3fc53e5 commit d5bd703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/test/cases/fixtures_test.rb
Expand Up @@ -589,8 +589,8 @@ def test_only_populates_columns_that_exist
end end


def test_preserves_existing_fixture_data def test_preserves_existing_fixture_data
assert_equal(2.weeks.ago.to_date, pirates(:redbeard).created_on.to_date) assert_equal(2.weeks.ago.utc.to_date, pirates(:redbeard).created_on.utc.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).updated_on.utc.to_date)
end end


def test_generates_unique_ids def test_generates_unique_ids
Expand Down

0 comments on commit d5bd703

Please sign in to comment.