Add tests for BunnyRun::Message class

This commit is contained in:
2018-04-07 00:04:34 +01:00
parent 2fc3597307
commit 2cfde0038d
3 changed files with 195 additions and 0 deletions

View File

@@ -17,6 +17,11 @@ module BunnyRun
delivery_info.channel
end
def acked?
return unless manual_ack?
@acked
end
def ack
channel.ack(delivery_tag)
@acked = true