spec/models/subscriber_spec.rb in reactor-0.4.0 vs spec/models/subscriber_spec.rb in reactor-0.4.2

- old
+ new

@@ -25,10 +25,10 @@ end describe 'matcher' do it 'can be set to star to bind to all events' do MySubscriber.create!(event: '*') - MySubscriber.any_instance.should_receive(:fire).with(hash_including('random' => 'data', 'event' => :this_event)) + MySubscriber.any_instance.should_receive(:fire).with(hash_including('random' => 'data', 'event' => 'this_event')) Reactor::Event.publish(:this_event, {random: 'data'}) end end end