diff options
author | Ivan Storck <ivanoats@gmail.com> | 2011-06-23 10:21:26 -0700 |
---|---|---|
committer | Ivan Storck <ivanoats@gmail.com> | 2011-06-23 10:21:26 -0700 |
commit | a011527cb9badf94c5de65e223e67afff5df91c5 (patch) | |
tree | 3527217522cd862e85fa304578787c20f50cef3f /spec | |
parent | bb09ca4e44d72cecee7873b3ce961349053c213b (diff) | |
download | refinerycms-blog-a011527cb9badf94c5de65e223e67afff5df91c5.tar.gz refinerycms-blog-a011527cb9badf94c5de65e223e67afff5df91c5.tar.bz2 refinerycms-blog-a011527cb9badf94c5de65e223e67afff5df91c5.zip |
fixed ruby 1.9.2 warnings about useless use of == in boid context
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/blog_post_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/blog_post_spec.rb b/spec/models/blog_post_spec.rb index 46da3ac..123fe9d 100644 --- a/spec/models/blog_post_spec.rb +++ b/spec/models/blog_post_spec.rb @@ -64,7 +64,7 @@ describe BlogPost do it "returns all posts from specified month" do #check for this month date = "03/2011" - BlogPost.by_archive(Time.parse(date)).count.should == 2 + BlogPost.by_archive(Time.parse(date)).count.should be == 2 BlogPost.by_archive(Time.parse(date)).should == [@blog_post2, @blog_post1] end end @@ -77,7 +77,7 @@ describe BlogPost do end it "returns all posts from previous months" do - BlogPost.all_previous.count.should == 2 + BlogPost.all_previous.count.should be == 2 BlogPost.all_previous.should == [@blog_post2, @blog_post1] end end @@ -91,7 +91,7 @@ describe BlogPost do end it "returns all posts which aren't in draft and pub date isn't in future" do - BlogPost.live.count.should == 2 + BlogPost.live.count.should be == 2 BlogPost.live.should == [@blog_post2, @blog_post1] end end |