Previous scope test wasn't testing BlogPost.previous
This commit is contained in:
parent
6f9de45019
commit
a4b02b13c3
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ describe BlogPost do
|
|||
it "returns previous article based on given article" do
|
||||
blog_post1 = Factory(:post)
|
||||
blog_post2 = Factory(:post, :published_at => Time.now + 1.minute)
|
||||
BlogPost.next(blog_post1).should == [blog_post2]
|
||||
BlogPost.previous(blog_post2).should == [blog_post1]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue