Sha256: 07de12b16e290d5526f13b2c0d61982e6f474159084518494a245cc9e1611f97
Contents?: true
Size: 643 Bytes
Versions: 3
Compression:
Stored size: 643 Bytes
Contents
describe BunnyMock::Exchanges::Direct do context '#deliver' do before do @source = @channel.direct 'xchg.source' @first = @channel.queue 'queue.first' @second = @channel.queue 'queue.second' @third = @channel.queue 'queue.third' @first.bind @source @second.bind @source @third.bind @source end it 'should only deliver to direct route match' do @source.publish 'Testing message', routing_key: 'queue.second' expect(@first.message_count).to eq(0) expect(@third.message_count).to eq(0) expect(@second.message_count).to eq(1) expect(@second.pop[:message]).to eq('Testing message') end end end
Version data entries
3 entries across 3 versions & 1 rubygems