Sha256: 2415f15efdc07a8b57aad5c9f9c4bda01ad0e00e56e64a534cc88ec2ae74dc4b
Contents?: true
Size: 739 Bytes
Versions: 4
Compression:
Stored size: 739 Bytes
Contents
require "spec_helper" describe Bunny::Queue, "#delete" do let(:connection) do c = Bunny.new(:user => "bunny_gem", :password => "bunny_password", :vhost => "bunny_testbed") c.start c end after :all do connection.close end context "with a name of an existing queue" do it "deletes that queue" do ch = connection.create_channel q = ch.queue("") q.delete expect { q.delete }.to raise_error(Bunny::NotFound) end end context "with a name of an existing queue" do it "raises an exception" do ch = connection.create_channel expect { ch.queue_delete("sdkhflsdjflskdjflsd#{rand}") }.to raise_error(Bunny::NotFound) end end end
Version data entries
4 entries across 4 versions & 1 rubygems