Sha256: 774c7e1541ef7aa1e9fca25ad3f45bb7c72a2ae680a918ea9b5ff140467269b7

Contents?: true

Size: 658 Bytes

Versions: 10

Compression:

Stored size: 658 Bytes

Contents

require 'spec_helper'
require 'integration/eventmachine/spec_helper'

describe AMQ::Client::EventMachineClient, "Channel.Close" do
  include EventedSpec::SpecHelper
  default_timeout 1

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
amq-client-0.7.0.alpha35 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha34 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha33 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha32 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha31 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha30 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha29 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha28 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha27 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha26 spec/integration/eventmachine/channel_close_spec.rb