diff options
author | Joe Sak <joe@joesak.com> | 2011-02-16 01:18:37 -0600 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2011-02-16 01:18:37 -0600 |
commit | a4b02b13c32002a962040b645c8abd03af48fd84 (patch) | |
tree | f1bff2c658804320b62fcec358612e496011605a /spec/models | |
parent | 6f9de45019b8cd6c589338cffdffcea1e0e40ed7 (diff) | |
download | refinerycms-blog-a4b02b13c32002a962040b645c8abd03af48fd84.tar.gz refinerycms-blog-a4b02b13c32002a962040b645c8abd03af48fd84.tar.bz2 refinerycms-blog-a4b02b13c32002a962040b645c8abd03af48fd84.zip |
Previous scope test wasn't testing BlogPost.previous
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/blog_posts_spec.rb | 2 |
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 |