Sha256: bc1aa703e8f04ca2f95c8d16a2da4a417f3cadd51250e7c3702d70d21b9ff15e

Contents?: true

Size: 645 Bytes

Versions: 26

Compression:

Stored size: 645 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 |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

26 entries across 26 versions & 1 rubygems

Version Path
amq-client-0.7.0.alpha5 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha4 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha3 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha2 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha1 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.5.0 spec/integration/eventmachine/channel_close_spec.rb