module BunnyMock

A mock RabbitMQ client based on Bunny

@see github.com/ruby-amq/bunny

Constants

PROTOCOL_VERSION

AMQP protocol version

VERSION

@return [String] Version of the library

Attributes

use_bunny_queue_pop_api[W]

Public Class Methods

new(*) click to toggle source

Instantiate a new mock Bunny session

@return [BunnyMock::Session] Session instance @api public

# File lib/bunny-mock.rb, line 42
def new(*)
  # return new mock session
  BunnyMock::Session.new
end
protocol_version() click to toggle source

@return [String] AMQP protocol version

# File lib/bunny-mock.rb, line 58
def protocol_version
  AMQ::Protocol::PROTOCOL_VERSION
end
use_bunny_queue_pop_api() click to toggle source

@return [Boolean] Use Bunny API for Queue#pop (default: false)

# File lib/bunny-mock.rb, line 48
def use_bunny_queue_pop_api
  @use_bunny_queue_pop_api.nil? ? false : @use_bunny_queue_pop_api
end
version() click to toggle source

@return [String] Bunny mock version

# File lib/bunny-mock.rb, line 53
def version
  VERSION
end