spec/units/message_driver/subscription_spec.rb in message-driver-0.3.0 vs spec/units/message_driver/subscription_spec.rb in message-driver-0.4.0
- old
+ new
@@ -2,23 +2,23 @@
module MessageDriver::Subscription
describe Base do
let(:adapter) { double(MessageDriver::Adapters::Base) }
let(:destination) { double(MessageDriver::Destination::Base) }
- let(:consumer) { double("a consumer") }
+ let(:consumer) { double('a consumer') }
subject(:subscription) { Base.new(adapter, destination, consumer) }
it "sets it's adapter, destination and consumer on instansiation" do
expect(subscription.adapter).to eq(adapter)
expect(subscription.destination).to eq(destination)
expect(subscription.consumer).to eq(consumer)
end
- describe "#unsubscribe" do
- it "raises an error" do
+ describe '#unsubscribe' do
+ it 'raises an error' do
expect {
subscription.unsubscribe
- }.to raise_error("must be implemented in subclass")
+ }.to raise_error('must be implemented in subclass')
end
end
end
end