spec/event_spec.rb in reactor-0.4.7 vs spec/event_spec.rb in reactor-0.5.0
- old
+ new
@@ -36,10 +36,10 @@
Reactor::Event.perform(event_name, actor_id: '1')
end
it 'works with the legacy .process method, too' do
Reactor::Subscriber.any_instance.should_receive(:fire).with(hash_including(actor_id: '1'))
- Reactor::Event.process(event_name, actor_id: '1')
+ Reactor::Event.perform(event_name, actor_id: '1')
end
end
describe 'reschedule', :sidekiq do
let(:scheduled) { Sidekiq::ScheduledSet.new }