Sha256: 270c18b6946a5f49662ca2e8915204f31db03c77ae6657b44117bf28f3dcd884

Contents?: true

Size: 485 Bytes

Versions: 12

Compression:

Stored size: 485 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 |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/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha24 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha23 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha22 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha21 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha20 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha19 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha18 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha17 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha16 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha15 spec/integration/coolio/connection_close_spec.rb
amq-client-0.7.0.alpha14 spec/integration/coolio/connection_close_spec.rb