module BunnyPublisher::Test

Test module prevents real connections to be made and replaces exchange with array-based TestExchange

Public Instance Methods

close()
Alias for: flush!
exchange() click to toggle source
# File lib/bunny_publisher/test.rb, line 16
def exchange
  @exchange ||= TestExchange.new
end
Also aliased as: messages
flush!() click to toggle source
# File lib/bunny_publisher/test.rb, line 22
def flush!
  exchange.clear
end
Also aliased as: close, stop
messages()
Alias for: exchange
stop()
Alias for: flush!

Private Instance Methods

ensure_connection!() click to toggle source
# File lib/bunny_publisher/test.rb, line 31
def ensure_connection!; end