Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
fixed ruby 1.9.2 warnings about useless use of == in boid context
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanoats committed Jun 23, 2011
1 parent bb09ca4 commit a011527
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/models/blog_post_spec.rb
Expand Up @@ -64,7 +64,7 @@
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
Expand All @@ -77,7 +77,7 @@
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
Expand All @@ -91,7 +91,7 @@
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
Expand Down

1 comment on commit a011527

@ivanoats
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Void not boid. my keyboard has a cold i think

Please sign in to comment.