spec/bullet_spec.rb in bullet-4.11.2 vs spec/bullet_spec.rb in bullet-4.11.3
- old
+ new
@@ -24,11 +24,11 @@
expect(subject).to_not be_enable
end
context 'enable Bullet again without patching again the orms' do
before do
- Bullet::Mongoid.should_not_receive(:enable) if defined? Bullet::Mongoid
- Bullet::ActiveRecord.should_not_receive(:enable) if defined? Bullet::ActiveRecord
+ expect(Bullet::Mongoid).not_to receive(:enable) if defined? Bullet::Mongoid
+ expect(Bullet::ActiveRecord).not_to receive(:enable) if defined? Bullet::ActiveRecord
Bullet.enable = true
end
it 'should be enabled again' do
expect(subject).to be_enable