spec/integration/rails2/counter_spec.rb in bullet-4.1.0 vs spec/integration/rails2/counter_spec.rb in bullet-4.1.1

- old
+ new

@@ -1,8 +1,8 @@ require 'spec_helper' -if Rails.version.to_i > 2 +if active_record2? describe Bullet::Detector::Counter do before(:each) do Bullet.start_request end @@ -29,10 +29,10 @@ Bullet.collected_counter_cache_notifications.should be_empty end it "should not need counter cache with part of cities" do Country.all.each do |country| - country.cities.where(:name => 'first').size + country.cities.find(:all, :conditions => {:name => 'first'}).size end Bullet.collected_counter_cache_notifications.should be_empty end end end