In #prev and #next specs advance time by days instead of minutes.
This commit is contained in:
parent
d36af516ea
commit
981fc6ef68
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue