spec/integration/rails2/association_spec.rb in bullet-4.1.0 vs spec/integration/rails2/association_spec.rb in bullet-4.1.1
- old
+ new
@@ -1,7 +1,7 @@
require 'spec_helper'
-if Rails.version.to_i == 2
+if active_record2?
describe Bullet::Detector::Association, 'has_many' do
before(:each) do
Bullet.clear
Bullet.start_request
end