Sha256: 4a233536ab0f6d432c91368a2a47850d3a384a170cd38a720473733cb671eab4

Contents?: true

Size: 479 Bytes

Versions: 12

Compression:

Stored size: 479 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 |client|
        @client = client
        client.should be_opened
        client.close do
          done
        end
      end
    end
    @client.should be_closed
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
amq-client-0.7.0.alpha25 spec/integration/eventmachine/connection_close_spec.rb
amq-client-0.7.0.alpha24 spec/integration/eventmachine/connection_close_spec.rb
amq-client-0.7.0.alpha23 spec/integration/eventmachine/connection_close_spec.rb
amq-client-0.7.0.alpha22 spec/integration/eventmachine/connection_close_spec.rb
amq-client-0.7.0.alpha21 spec/integration/eventmachine/connection_close_spec.rb
amq-client-0.7.0.alpha20 spec/integration/eventmachine/connection_close_spec.rb
amq-client-0.7.0.alpha19 spec/integration/eventmachine/connection_close_spec.rb
amq-client-0.7.0.alpha18 spec/integration/eventmachine/connection_close_spec.rb
amq-client-0.7.0.alpha17 spec/integration/eventmachine/connection_close_spec.rb
amq-client-0.7.0.alpha16 spec/integration/eventmachine/connection_close_spec.rb
amq-client-0.7.0.alpha15 spec/integration/eventmachine/connection_close_spec.rb
amq-client-0.7.0.alpha14 spec/integration/eventmachine/connection_close_spec.rb