Sha256: 40558f6061523e2264053fe6aa46dbe5f4234b9277ae238d9a6e9d164dd16cea
Contents?: true
Size: 739 Bytes
Versions: 55
Compression:
Stored size: 739 Bytes
Contents
require "spec_helper" describe Bunny::Exchange, "#publish" do let(:connection) do c = Bunny.new(:user => "bunny_gem", :password => "bunny_password", :vhost => "bunny_testbed") c.start c end after :each do connection.close if connection.open? end context "with :mandatory => true and a bad [no routes] routing key" do it "causes a message to be returned" do ch = connection.create_channel x = ch.default_exchange returned = [] x.on_return do |basic_deliver, properties, content| returned << content end x.publish("xyzzy", :routing_key => rand.to_s, :mandatory => true) sleep 0.5 returned.should include("xyzzy") ch.close end end end
Version data entries
55 entries across 55 versions & 1 rubygems