Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refactor fixtures for yesterday's+tomorrow's post and add a post for …

…a week ago
  • Loading branch information...
commit 724686fb7960038d10fd57e908eeee8fe52596ef 1 parent fc345de
@radar authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 spec/fixtures/models.rb
View
5 spec/fixtures/models.rb
@@ -21,8 +21,9 @@ class Event < ActiveRecord::Base
end
Post.factory "Today's post", Time.zone.now
-Post.factory "Yesterday's post", Time.zone.now - 1.day
-Post.factory "Tomorrow's post", Time.zone.now + 1.day
+Post.factory "Yesterday's post", 1.day.ago
+Post.factory "A week ago", 1.week.ago
+Post.factory "Tomorrow's post", 1.day.from_now
Post.factory "That's it!", Time.zone.now.end_of_year
Please sign in to comment.
Something went wrong with that request. Please try again.