aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/pirates.yml
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2011-07-20 01:00:35 +0200
committerJosh Kalderimis <josh.kalderimis@gmail.com>2011-07-20 01:00:35 +0200
commitf92cefa95f44bcd550c402a7f5ba914f3bd783cc (patch)
treeafa936804777295c1f63ccceb45441832281f771 /activerecord/test/fixtures/pirates.yml
parent0e6f19cc9bbad22543223550afb3e321309fe07f (diff)
downloadrails-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/test/fixtures/pirates.yml')
-rw-r--r--activerecord/test/fixtures/pirates.yml4
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) %>