Sha256: 0c407d323dcb0d70769cbb7dae4ad73403e8f2885f10fa1cad93117080ea6ab9

Contents?: true

Size: 527 Bytes

Versions: 32

Compression:

Stored size: 527 Bytes

Contents

# encoding: utf-8

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

32 entries across 32 versions & 1 rubygems

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