class Tochtli::Test::TestRabbitChannel
Public Class Methods
new(connection)
click to toggle source
# File lib/tochtli/test/test_case.rb, line 93 def initialize(connection) @connection = connection end
Public Instance Methods
generate_consumer_tag()
click to toggle source
# File lib/tochtli/test/test_case.rb, line 107 def generate_consumer_tag "test-consumer-tag-#{rand(1000)}" end
queue(name, options={})
click to toggle source
# File lib/tochtli/test/test_case.rb, line 97 def queue(name, options={}) @connection.queue(name, [], options) end