bunny-mock icon indicating copy to clipboard operation
bunny-mock copied to clipboard

A mock client for RabbitMQ modeled after the Bunny client in ruby

Results 21 bunny-mock issues
Sort by recently updated
recently updated
newest added

Add support for the following method: http://api.rubybunny.info/Bunny/Queue.html#durable%3F-instance_method

This small change fixes `BunnyMock::Queue#subscribe` so it acts like a queue rather than a stack.

If you bind a queue to an exchange multiple times, then publish a message to the exchange, the expectation is to only receive one message. This can be seen in...

In current version of `bunny `, we have a method to check if a `Bunny::Session` is blocked when [RabbitMQ has some issue](http://reference.rubybunny.info/Bunny/Session.html#blocked%3F-instance_method). I'm adding this method here with `blocked?` always...

Hi, The code I am testing uses the [`Bunny::Exchange#on_return`](http://reference.rubybunny.info/Bunny/Exchange.html#on_return-instance_method) method, which `BunnyMock::Exchange` does not implement. This causes my test to fail to a `NoMethodError`.

Headers exchanges as implemented currently ignore message headers, and instead route messages based on the `:routing_key` passed to the `#publish` method, just like Direct and Topic exchanges. It also looks...

I tried to implement a basic handling of dead-letter-exchanges. If a message gets nacked or rejected it could be delivered in a dead letter exchange if specified in the arguments...