Sha256: eca61db65cc0fb76bc782779ebbe7edb6bb01b9eda1003a73ae740a373913b8f
Contents?: true
Size: 501 Bytes
Versions: 2
Compression:
Stored size: 501 Bytes
Contents
require "qsagi" class ExampleQueue include Qsagi::Queue def self.host "127.0.0.1" end def self.port 5672 end def self.queue_name "qsagi_testing" end end RSpec.configure do |c| c.before(:each) do client = Bunny.new(:host => ExampleQueue.host, :port => ExampleQueue.port) client.start queue = client.queue(ExampleQueue.queue_name, :durable => true, :arguments => {"x-ha-policy" => "all"}) queue.delete rescue nil client.send(:close_socket) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qsagi-0.0.2 | spec/spec_helper.rb |
qsagi-0.0.1 | spec/spec_helper.rb |