spec/models/subscriber_spec.rb in reactor-0.0.1 vs spec/models/subscriber_spec.rb in reactor-0.1.0
- old
+ new
@@ -11,10 +11,10 @@
describe Reactor::Subscriber do
describe 'fire' do
subject { MySubscriber.create(event: :you_name_it).fire some: 'random', event: 'data' }
- its(:message) { should be_a Reactor::Message }
+ its(:message) { should be_a Reactor::Event }
its('message.some') { should == 'random' }
it 'executes block given' do
subject.was_called.should be_true
end