arempe93 / bunny-mock

A mock client for RabbitMQ modeled after the Bunny client in ruby
http://www.rubydoc.info/github/arempe93/bunny-mock
MIT License
44 stars 37 forks source link

messages sent to default exchange are delivered if queue exists #25

Open hading opened 7 years ago

hading commented 7 years ago

For issue #24 which I filed.

This implements a solution along the lines of the first that I mention in issue #24. It's possible that other properties that the default exchange has will not be correctly reflected, or that other things may break. All the existing specs pass, with one modification. I haven't commented or added any new specs, but if you want this it accomplishes the one thing I wanted - if you send a message to the default exchange with routing_key an existing queue, it'll be delivered.