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-1.0.4 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-1.0.3 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-1.1.0.pre1 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-1.0.2 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-1.0.1 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-1.0.0 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.9.12 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.9.11 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.9.10 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.9.9 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.9.8 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.9.7 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.9.6 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.9.5 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.9.4 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-1.0.0.pre2 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.9.3 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-1.0.0.pre1 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.9.2 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb
amq-client-0.9.1 spec/integration/eventmachine/regressions/amqp_gem_issue66_spec.rb