spec/unit/bunny_mock/channel_spec.rb in bunny-mock-1.0.0 vs spec/unit/bunny_mock/channel_spec.rb in bunny-mock-1.1.0
- old
+ new
@@ -92,11 +92,11 @@
it 'should register the exchange in cache' do
xchg = @channel.exchange 'testing.xchg', type: :fanout
- expect(@channel.exchanges['testing.xchg']).to eq(xchg)
+ expect(@session.exchange_exists?('testing.xchg')).to be_truthy
end
end
context '#direct' do
@@ -159,10 +159,10 @@
it 'should register the queue in cache' do
q = @channel.queue 'testing.q'
- expect(@channel.queues['testing.q']).to eq(q)
+ expect(@session.queue_exists?('testing.q')).to be_truthy
end
end
context '#temporary_queue' do