Sha256: 5f48b23dc4a9a4a25ab22eef1611df68c50f2f2a882b2c7e75ee28569112fa91
Contents?: true
Size: 831 Bytes
Versions: 1
Compression:
Stored size: 831 Bytes
Contents
require "spec_helper" describe Bunny::Channel 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 if connection.open? end context "when publishing with confirms enabled" do it "increments delivery index" do ch = connection.create_channel ch.should_not be_using_publisher_confirmations ch.confirm_select ch.should be_using_publisher_confirmations q = ch.queue("", :exclusive => true) x = ch.default_exchange 5000.times do x.publish("xyzzy", :routing_key => q.name) end ch.next_publish_seq_no.should == 5001 ch.wait_for_confirms q.message_count.should == 5000 q.purge ch.close end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bunny-0.9.0.pre3 | spec/higher_level_api/integration/publisher_confirms_spec.rb |