From a4b02b13c32002a962040b645c8abd03af48fd84 Mon Sep 17 00:00:00 2001 From: Joe Sak Date: Wed, 16 Feb 2011 01:18:37 -0600 Subject: Previous scope test wasn't testing BlogPost.previous --- spec/models/blog_posts_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/models') diff --git a/spec/models/blog_posts_spec.rb b/spec/models/blog_posts_spec.rb index 0ef9b0e..c15d1da 100644 --- a/spec/models/blog_posts_spec.rb +++ b/spec/models/blog_posts_spec.rb @@ -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 -- cgit v1.2.3