Sha256: 2528639a81cb3b1f6f275d63172b0734dace890f88926847406a4f60a0f201a9

Contents?: true

Size: 677 Bytes

Versions: 32

Compression:

Stored size: 677 Bytes

Contents

# encoding: utf-8

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

32 entries across 32 versions & 1 rubygems

Version Path
amq-client-0.9.0 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.9.0.pre2 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.9.0.pre1 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.8.7 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.8.7.pre1 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.8.6 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.8.5 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.8.4 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.8.3 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.8.2 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.8.1 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.8.0 spec/integration/eventmachine/channel_close_spec.rb