spec/event_spec.rb in reactor-0.6.2 vs spec/event_spec.rb in reactor-0.7.0

- old
+ new

@@ -22,10 +22,10 @@ Reactor::Event.publish(:user_did_this, actor_id: '1') end end describe 'perform' do - before { Reactor::Subscriber.create(event: :user_did_this) } + before { Reactor::Subscriber.create(event_name: :user_did_this) } after { Reactor::Subscriber.destroy_all } it 'fires all subscribers' do Reactor::Subscriber.any_instance.should_receive(:fire).with(hash_including(actor_id: '1')) Reactor::Event.perform(event_name, actor_id: '1') end