Sha256: b81765dcb5b72f8c0f4bfcfe76e648d53d1629bd34595899e60b4c8952b5a17f

Contents?: true

Size: 540 Bytes

Versions: 32

Compression:

Stored size: 540 Bytes

Contents

# encoding: utf-8

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

32 entries across 32 versions & 1 rubygems

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