aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/models/blog_posts_spec.rb2
1 files changed, 1 insertions, 1 deletions
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