Skip to content

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
Original file line number Diff line number Diff line change
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

0 comments on commit a011527

Please sign in to comment.