require 'spec_helper' module MessageDriver::Destination describe Base do 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