module BunnyPublisher::Test
Test
module prevents real connections to be made and replaces exchange with array-based TestExchange
Public Instance Methods
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
Private Instance Methods
ensure_connection!()
click to toggle source
# File lib/bunny_publisher/test.rb, line 31 def ensure_connection!; end