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.alpha25 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha24 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha23 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha22 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha21 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha20 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha19 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha18 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha17 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha16 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha15 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha14 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha13 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha12 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha11 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha10 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha9 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha8 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha7 spec/integration/eventmachine/channel_close_spec.rb
amq-client-0.7.0.alpha6 spec/integration/eventmachine/channel_close_spec.rb