Open TimothyMDean opened 8 years ago
If you have an idea of how to make this work, you can submit a PR for it. Or you could explain what needs to happen with regards to acks, nacks, and delivery tags if you have experience with them. Might improve turn around time from me trying to read through the docs :)
I will take a look when I get a chance to see what I can come up with.
Added a stub for it in https://github.com/arempe93/bunny-mock/pull/20
I have Bunny code that does manual acknowledgement of messages by passing
manual_ack: true
into thepop
method of theQueue
class. This allows the message to be redelivered if the consumer class fails to completely process the message.To make this work, my code must manually acknowledge successful completion of message processing. It does this using the
Channel
class'sacknowledge
orack
method. That method is not currently implemented in theBunnyMock::Channel
class.Is is possible to add some sort of rudimentary mocking support for message acknowledgement methods?