aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/refinery
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/refinery')
-rw-r--r--spec/models/refinery/blog/post_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/refinery/blog/post_spec.rb b/spec/models/refinery/blog/post_spec.rb
index 0b96311..0c2ce81 100644
--- a/spec/models/refinery/blog/post_spec.rb
+++ b/spec/models/refinery/blog/post_spec.rb
@@ -128,7 +128,7 @@ module Refinery
describe "#next" do
before do
- FactoryGirl.create(:blog_post, :published_at => Time.now.advance(:minutes => -1))
+ FactoryGirl.create(:blog_post, :published_at => Time.now.advance(:days => -1))
@post = FactoryGirl.create(:blog_post)
end
@@ -140,7 +140,7 @@ module Refinery
describe "#prev" do
before do
FactoryGirl.create(:blog_post)
- @post = FactoryGirl.create(:blog_post, :published_at => Time.now.advance(:minutes => -1))
+ @post = FactoryGirl.create(:blog_post, :published_at => Time.now.advance(:days => -1))
end
it "returns previous article when called on current article" do