Sha256: 9df73f4041e480211f2c6d6e9b543b5ee89e2388252abb784e988af17a5ecd69

Contents?: true

Size: 436 Bytes

Versions: 54

Compression:

Stored size: 436 Bytes

Contents

# encoding: utf-8

require "spec_helper"

describe AMQP::Channel, "#close(&callback)" do
  include EventedSpec::AMQPSpec

  it "takes a callback which will run when we get back Channel.Close-Ok" do
    @events = []

    AMQP::Channel.new do |ch|
      @events << :open_ok
      ch.close do |channel, close_ok|
        @events << :close_ok
      end
    end

    done(0.3) {
      @events.should == [:open_ok, :close_ok]
    }
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
amqp-1.8.0 spec/integration/channel_close_spec.rb
amqp-1.7.0 spec/integration/channel_close_spec.rb
amqp-1.6.0 spec/integration/channel_close_spec.rb
amqp-1.5.3 spec/integration/channel_close_spec.rb
amqp-1.5.2 spec/integration/channel_close_spec.rb
amqp-1.5.1 spec/integration/channel_close_spec.rb
amqp-1.5.0 spec/integration/channel_close_spec.rb
amqp-1.4.2 spec/integration/channel_close_spec.rb
amqp-1.4.1 spec/integration/channel_close_spec.rb
amqp-1.4.0 spec/integration/channel_close_spec.rb
amqp-1.3.0 spec/integration/channel_close_spec.rb
amqp-1.2.1 spec/integration/channel_close_spec.rb
amqp-1.2.0 spec/integration/channel_close_spec.rb
amqp-1.1.8 spec/integration/channel_close_spec.rb
amqp-1.1.7 spec/integration/channel_close_spec.rb
amqp-1.1.6 spec/integration/channel_close_spec.rb
amqp-1.1.5 spec/integration/channel_close_spec.rb
amqp-1.1.4 spec/integration/channel_close_spec.rb
amqp-1.1.3 spec/integration/channel_close_spec.rb
amqp-1.0.4 spec/integration/channel_close_spec.rb