spec/bullet_counter_spec.rb in flyerhzm-bullet-1.5.3 vs spec/bullet_counter_spec.rb in flyerhzm-bullet-1.5.4

- old
+ new

@@ -58,15 +58,20 @@ Country.all.each do |country| country.cities.size end Bullet::Counter.should be_need_counter_caches end + + it "should not need coounter cache with only one object" do + Country.first.cities.size + Bullet::Counter.should_not be_need_counter_caches + end it "should not need counter cache with part of cities" do Country.all.each do |country| country.cities(:conditions => ["name = ?", 'first']).size end - Bullet::Counter.should_not be_need_counter_cache + Bullet::Counter.should_not be_need_counter_caches end end describe Bullet::Counter do def setup_db