diff options
author | Anil Wadghule <anildigital@gmail.com> | 2011-06-05 19:36:37 +0530 |
---|---|---|
committer | Anil Wadghule <anildigital@gmail.com> | 2011-06-05 19:36:37 +0530 |
commit | 3fc53e5ea1074091b4242521d26c5aec1439f98d (patch) | |
tree | 1dcb14348a975e0ed6962c27b48f5f8b17376439 | |
parent | a50865c7dcc0827ea843d04a58e91acce9bf2c0e (diff) | |
download | rails-3fc53e5ea1074091b4242521d26c5aec1439f98d.tar.gz rails-3fc53e5ea1074091b4242521d26c5aec1439f98d.tar.bz2 rails-3fc53e5ea1074091b4242521d26c5aec1439f98d.zip |
Fix failing test because of Timezone difference.
-rw-r--r-- | activerecord/test/cases/fixtures_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/fixtures_test.rb b/activerecord/test/cases/fixtures_test.rb index 306b437fb3..854eb86c09 100644 --- a/activerecord/test/cases/fixtures_test.rb +++ b/activerecord/test/cases/fixtures_test.rb @@ -589,8 +589,8 @@ class FoxyFixturesTest < ActiveRecord::TestCase 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 |