Sha256: 2509bfd8df4e2187d7a79292ebbb841db95d9966d5b7bdc49b4c14d78351dff4

Contents?: true

Size: 508 Bytes

Versions: 10

Compression:

Stored size: 508 Bytes

Contents

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

describe AMQ::Client::EventMachineClient, "Connection.Close" do
  include EventedSpec::SpecHelper
  default_timeout 0.5

  it "should issue a callback and close connection" do
    em do
      AMQ::Client::EventMachineClient.connect do |connection|
        @connection = connection
        connection.should be_opened
        connection.disconnect do
          done
        end
      end
    end
    @connection.should be_closed
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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