spec/units/message_driver/destination_spec.rb in message-driver-0.1.0 vs spec/units/message_driver/destination_spec.rb in message-driver-0.2.0.rc1
- old
+ new
@@ -5,7 +5,16 @@
subject(:destination) { Base.new(nil, nil, nil, nil) }
it "needs some real tests"
include_examples "doesn't support #message_count"
+
+ describe "#subscribe" do
+ it "raises an error" do
+ expect {
+ consumer = lambda do |m| end
+ destination.subscribe(&consumer)
+ }.to raise_error "#subscribe is not supported by #{destination.class}"
+ end
+ end
end
end