aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2012-04-10 23:28:43 +0300
committerUģis Ozols <ugis.ozolss@gmail.com>2012-04-10 23:28:43 +0300
commit981fc6ef684f1166a53bd60c087e60516e1009b0 (patch)
treeee1a1aba453fcea9dabff2bb08d69a43a6dc3eb4 /spec
parentd36af516eac3acf24f3ad0ea439e52691323a7a5 (diff)
downloadrefinerycms-blog-981fc6ef684f1166a53bd60c087e60516e1009b0.tar.gz
refinerycms-blog-981fc6ef684f1166a53bd60c087e60516e1009b0.tar.bz2
refinerycms-blog-981fc6ef684f1166a53bd60c087e60516e1009b0.zip
In #prev and #next specs advance time by days instead of minutes.
Diffstat (limited to 'spec')
-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