Skip to content

Commit

Permalink
Fixing error-inducing spec
Browse files Browse the repository at this point in the history
  • Loading branch information
stephan-nordnes-eriksen committed Dec 9, 2014
1 parent 9bb3384 commit 4c8adfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/lib/event_aggregator/aggregator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ def self_called(data)
test_class2 = TestClassSingle.new
message = EventAggregator::Message.new("message_type", data)
expect(test_class).to receive(:self_called){|e| expect(e.message_type).to eq("message_type") and expect(e.data).to eq(data)}
expect(test_class2).to receive(:self_called){|e| expect(e.message_type).to eq("message_type") and expect(e.data).to eq(data)}
expect(test_class2).to receive(:self_called).with(data)
message.publish
end
end
Expand Down

0 comments on commit 4c8adfa

Please sign in to comment.