spec/bullet_spec.rb in bullet-6.1.1 vs spec/bullet_spec.rb in bullet-6.1.2
- old
+ new
@@ -86,10 +86,10 @@
describe '#delete_whitelist' do
context "for 'special' class names" do
it 'is deleted from the whitelist successfully' do
Bullet.add_whitelist(type: :n_plus_one_query, class_name: 'Klass', association: :department)
Bullet.delete_whitelist(type: :n_plus_one_query, class_name: 'Klass', association: :department)
- expect(Thread.current[:whitelist][:n_plus_one_query]).to eq({})
+ expect(Bullet.whitelist[:n_plus_one_query]).to eq({})
end
end
context 'when exists multiple definitions' do
it 'is deleted from the whitelist successfully' do