spec/models/concerns/subscribable_spec.rb in reactor-0.8.2 vs spec/models/concerns/subscribable_spec.rb in reactor-0.8.3
- old
+ new
@@ -28,9 +28,10 @@
end
end
describe Reactor::Subscribable do
let(:scheduled) { Sidekiq::ScheduledSet.new }
+ before { Reactor::TEST_MODE_SUBSCRIBERS.clear }
describe 'on_event' do
it 'binds block of code statically to event being fired' do
expect_any_instance_of(Auction).to receive(:update_column).with(:status, 'first_bid_made')
Reactor::Event.publish(:bid_made, target: Auction.create)