Sha256: 3e88771cb191f09a01af6897cfa38a0319cfcd289e390c797bfe6b1d4463eb3d
Contents?: true
Size: 640 Bytes
Versions: 30
Compression:
Stored size: 640 Bytes
Contents
require "spec_helper" describe Bunny::Queue do let(:connection) do c = Bunny.new(username: "bunny_gem", password: "bunny_password", vhost: "bunny_testbed") c.start c end after :each do connection.close if connection.open? end it "is closed when the connection it was declared on is closed" do ch1 = connection.create_channel ch2 = connection.create_channel q = ch1.queue("", exclusive: true) ch1.queue_declare(q.name, passive: true) ch2.queue_declare(q.name, passive: true) ch1.close ch2.queue_declare(q.name, passive: true) ch2.queue_delete(q.name) ch2.close end end
Version data entries
30 entries across 30 versions & 1 rubygems