class BunnyMock

Constants

VERSION

Public Instance Methods

channels() click to toggle source
# File lib/bunny_mock.rb, line 17
def channels
  @channels ||= []
end
create_channel() click to toggle source
# File lib/bunny_mock.rb, line 21
def create_channel
  Channel.new.tap{|c| channels << c}
end
exchange(*attrs) click to toggle source
# File lib/bunny_mock.rb, line 29
def exchange(*attrs)
  BunnyMock::Exchange.new(*attrs)
end
qos() click to toggle source
# File lib/bunny_mock.rb, line 9
def qos
  :qos_ok
end
queue(*attrs) click to toggle source
# File lib/bunny_mock.rb, line 25
def queue(*attrs)
  BunnyMock::Queue.new(*attrs)
end
start() click to toggle source
# File lib/bunny_mock.rb, line 5
def start
  :connected
end
stop() click to toggle source
# File lib/bunny_mock.rb, line 13
def stop
  nil
end