spec/unit/bunny_mock_spec.rb in bunny-mock-1.2.2 vs spec/unit/bunny_mock_spec.rb in bunny-mock-1.3.0

- old
+ new

@@ -20,6 +20,16 @@ it 'should return the current amq protocol version' do expect(BunnyMock::PROTOCOL_VERSION).to eq('0.9.1') expect(BunnyMock.protocol_version).to eq('0.9.1') end end + + it 'should route messages from exchanges' do + channel = BunnyMock.new.start.channel + + xchg = channel.topic 'xchg.topic' + queue = channel.queue 'queue.test' + + queue.bind xchg + xchg.publish('Routed message', routing_key: '*.test') + end end