class Tochtli::Test::TestQueue

Attributes

channel[R]
name[R]
options[R]
routing_key[R]

Public Class Methods

new(channel, name, options) click to toggle source
# File lib/tochtli/test/test_case.rb, line 123
def initialize(channel, name, options)
  @name    = name
  @channel = channel
  @options = options
end

Public Instance Methods

bind(exchange, options) click to toggle source
# File lib/tochtli/test/test_case.rb, line 129
def bind(exchange, options)
  @routing_key = options[:routing_key]
end
subscribe(*args) click to toggle source
# File lib/tochtli/test/test_case.rb, line 133
def subscribe(*args)
  TestConsumer.new
end
subscribe_with(*args) click to toggle source
# File lib/tochtli/test/test_case.rb, line 137
def subscribe_with(*args)
  TestConsumer.new
end