Sha256: ef0a410f02fe8b1db24c16f2f522021717fa2fbc83c6c302696dda70959db6b8

Contents?: true

Size: 514 Bytes

Versions: 10

Compression:

Stored size: 514 Bytes

Contents

require 'spec_helper'
require 'integration/coolio/spec_helper'

describe "AMQ::Client::CoolioClient", "Connection.Close", :nojruby => true do
  include EventedSpec::SpecHelper
  default_timeout 0.5

  it "should issue a callback and close connection" do
    coolio do
      AMQ::Client::CoolioClient.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/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha34 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha33 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha32 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha31 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha30 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha29 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha28 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha27 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha26 spec/integration/coolio/connection_close_spec.rb