Sha256: 71c7befecc20a49a4bd73b65dd7737b8d1a1de31103ca2db3f9edad389e9682d

Contents?: true

Size: 676 Bytes

Versions: 32

Compression:

Stored size: 676 Bytes

Contents

# encoding: utf-8

require 'spec_helper'
require 'integration/coolio/spec_helper'

describe "AMQ::Client::CoolioClient", "Channel.Close", :nojruby => true do
  include EventedSpec::SpecHelper
  default_timeout 1

  it "should close the channel" do
    @events = []
    coolio_amqp_connect do |client|
      @events << :connect
      channel = AMQ::Client::Channel.new(client, 1)
      channel.open do
        @events << :open
        channel.close do
          @events << :close
          client.disconnect do
            @events << :disconnect
            done
          end
        end
      end
    end
    @events.should == [:connect, :open, :close, :disconnect]
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
amq-client-1.0.4 spec/integration/coolio/channel_close_spec.rb
amq-client-1.0.3 spec/integration/coolio/channel_close_spec.rb
amq-client-1.1.0.pre1 spec/integration/coolio/channel_close_spec.rb
amq-client-1.0.2 spec/integration/coolio/channel_close_spec.rb
amq-client-1.0.1 spec/integration/coolio/channel_close_spec.rb
amq-client-1.0.0 spec/integration/coolio/channel_close_spec.rb
amq-client-0.9.12 spec/integration/coolio/channel_close_spec.rb
amq-client-0.9.11 spec/integration/coolio/channel_close_spec.rb
amq-client-0.9.10 spec/integration/coolio/channel_close_spec.rb
amq-client-0.9.9 spec/integration/coolio/channel_close_spec.rb
amq-client-0.9.8 spec/integration/coolio/channel_close_spec.rb
amq-client-0.9.7 spec/integration/coolio/channel_close_spec.rb
amq-client-0.9.6 spec/integration/coolio/channel_close_spec.rb
amq-client-0.9.5 spec/integration/coolio/channel_close_spec.rb
amq-client-0.9.4 spec/integration/coolio/channel_close_spec.rb
amq-client-1.0.0.pre2 spec/integration/coolio/channel_close_spec.rb
amq-client-0.9.3 spec/integration/coolio/channel_close_spec.rb
amq-client-1.0.0.pre1 spec/integration/coolio/channel_close_spec.rb
amq-client-0.9.2 spec/integration/coolio/channel_close_spec.rb
amq-client-0.9.1 spec/integration/coolio/channel_close_spec.rb