Previous scope test wasn't testing BlogPost.previous

This commit is contained in:
Joe Sak 2011-02-16 01:18:37 -06:00
parent 6f9de45019
commit a4b02b13c3

View file

@ -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