spec/unit/bunny_mock/exchanges/fanout_spec.rb in bunny-mock-1.3.0 vs spec/unit/bunny_mock/exchanges/fanout_spec.rb in bunny-mock-1.4.0
- old
+ new
@@ -16,15 +16,15 @@
it 'should only deliver to all routes' do
@source.publish 'Testing message', routing_key: 'queue.second'
expect(@first.message_count).to eq(1)
- expect(@first.pop[:message]).to eq('Testing message')
+ expect(@first.pop[2]).to eq('Testing message')
expect(@second.message_count).to eq(1)
- expect(@second.pop[:message]).to eq('Testing message')
+ expect(@second.pop[2]).to eq('Testing message')
expect(@third.message_count).to eq(1)
- expect(@third.pop[:message]).to eq('Testing message')
+ expect(@third.pop[2]).to eq('Testing message')
end
end
end