Sha256: 4318f4babc534ed12d0803afe0ffbff1480e2197baab69da926e116c6bfaa84e

Contents?: true

Size: 561 Bytes

Versions: 32

Compression:

Stored size: 561 Bytes

Contents

# encoding: utf-8

require "amq/client/adapters/event_machine"
require "amq/client/queue"
require "amq/client/exchange"
require "evented-spec"

case RUBY_VERSION
when "1.8.7" then
  class Array
    alias sample choice
  end
when /^1.9/ then
  Encoding.default_internal = Encoding::UTF_8
  Encoding.default_external = Encoding::UTF_8
end

def em_amqp_connect(&block)
  em do
    AMQ::Client::EventMachineClient.connect(:port => 5672, :vhost => "amq_client_testbed", :frame_max => 65536, :heartbeat_interval => 1) do |client|
      yield client
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

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