Sha256: 156ff50d8d1abe3fe95d2a265cefa9a4147760b05bea8286d2d4df3b920a15f1

Contents?: true

Size: 521 Bytes

Versions: 18

Compression:

Stored size: 521 Bytes

Contents

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

describe AMQ::Client::EventMachineClient, "handling immediate disconnection" do
  include EventedSpec::SpecHelper
  default_timeout 4

  after :all do
    done
  end

  it "successfully disconnects" do
    em_amqp_connect do
      EventMachine.run do
        c = described_class.connect

        c.disconnect do
          puts "Disconnection callback has fired!"
          done
        end
      end
    end # em_amqp_connect
  end # it
end # describe

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
amq-client-0.7.0.alpha35 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.7.0.alpha34 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.7.0.alpha33 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.7.0.alpha32 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.7.0.alpha31 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.7.0.alpha30 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.7.0.alpha29 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.7.0.alpha28 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.7.0.alpha27 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.7.0.alpha26 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.7.0.alpha25 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.7.0.alpha24 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.7.0.alpha23 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.7.0.alpha22 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.7.0.alpha21 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.7.0.alpha20 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.7.0.alpha19 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.7.0.alpha18 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb