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