From 981fc6ef684f1166a53bd60c087e60516e1009b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Tue, 10 Apr 2012 23:28:43 +0300 Subject: In #prev and #next specs advance time by days instead of minutes. --- spec/models/refinery/blog/post_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec') 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 -- cgit v1.2.3