diff options
author | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-07-20 01:00:35 +0200 |
---|---|---|
committer | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-07-20 01:00:35 +0200 |
commit | f92cefa95f44bcd550c402a7f5ba914f3bd783cc (patch) | |
tree | afa936804777295c1f63ccceb45441832281f771 /activerecord | |
parent | 0e6f19cc9bbad22543223550afb3e321309fe07f (diff) | |
download | rails-f92cefa95f44bcd550c402a7f5ba914f3bd783cc.tar.gz rails-f92cefa95f44bcd550c402a7f5ba914f3bd783cc.tar.bz2 rails-f92cefa95f44bcd550c402a7f5ba914f3bd783cc.zip |
this fixes a brittle test in fixtures_test.rb which fails when you are in a timezone which is ahead of UTC but UTC is in the previous day still.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/fixtures/pirates.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/fixtures/pirates.yml b/activerecord/test/fixtures/pirates.yml index abb91101da..a47d894249 100644 --- a/activerecord/test/fixtures/pirates.yml +++ b/activerecord/test/fixtures/pirates.yml @@ -5,5 +5,5 @@ blackbeard: redbeard: catchphrase: "Avast!" parrot: louis - created_on: <%= 2.weeks.ago.to_s(:db) %> - updated_on: <%= 2.weeks.ago.to_s(:db) %> + created_on: <%= 2.weeks.ago.utc.to_s(:db) %> + updated_on: <%= 2.weeks.ago.utc.to_s(:db) %> |