Skip to content
Browse files

Add new post for this time last year to test by_day with a given year

  • Loading branch information...
1 parent 724686f commit 3fe49c3dcbf0cd1cb7be3341299ade1e8e3d8dc7 @radar committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/fixtures/models.rb
2 spec/fixtures/models.rb
@@ -24,7 +24,7 @@ class Event < ActiveRecord::Base
Post.factory "Yesterday's post",
Post.factory "A week ago", 1.week.ago
Post.factory "Tomorrow's post",
+Post.factory "This time, last year", 1.year.ago
Post.factory "That's it!",
# For by_weekend scoped test

0 comments on commit 3fe49c3

Please sign in to comment.
Something went wrong with that request. Please try again.