Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1494 from anildigital/master

Fix failing test because of Timezone difference.
  • Loading branch information...
commit d5bd7030e56d3531a1ee7949ddaac691f6b27ed2 2 parents 6191368 + 3fc53e5
Santiago Pastorino spastorino authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/fixtures_test.rb
4 activerecord/test/cases/fixtures_test.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.