spec/integration/bunny/bunny_adapter_spec.rb in message-driver-0.6.1 vs spec/integration/bunny/bunny_adapter_spec.rb in message-driver-0.7.0
- old
+ new
@@ -127,11 +127,10 @@
expect(subject.instance_variable_get(:@channel)).to be_closed
end
end
describe '#create_destination' do
-
context 'with defaults' do
context 'the resulting destination' do
let(:dest_name) { 'my_dest' }
subject(:result) { adapter_context.create_destination(dest_name, exclusive: true) }
@@ -325,11 +324,10 @@
it "raises an error if you don't provide a type" do
expect do
adapter_context.create_destination(dest_name, type: :exchange, declare: { auto_delete: true })
end.to raise_error MessageDriver::Error, /you must provide a valid exchange type/
end
-
end
context 'and bindings are provided' do
let(:dest_name) { 'binding_exchange_queue' }
let(:exchange) { adapter_context.create_destination('amq.direct', type: :exchange) }
@@ -361,10 +359,10 @@
context 'the type is invalid' do
it 'raises in an error' do
expect do
adapter_context.create_destination('my_dest', type: :foo_bar)
- end.to raise_error MessageDriver::Error, "invalid destination type #{:foo_bar}"
+ end.to raise_error MessageDriver::Error, 'invalid destination type foo_bar'
end
end
end
describe '#subscribe' do