Sha256: 7f060e6e6d9453ac2d8a22948f6abb83c640b5c643d2dd15551e2c7b252629c5

Contents?: true

Size: 731 Bytes

Versions: 32

Compression:

Stored size: 731 Bytes

Contents

# encoding: utf-8

begin
  require "amq/client/adapters/coolio"
rescue LoadError => e
  if RUBY_PLATFORM =~ /java/
    puts "WARNING: Cool.io specs will not run on jruby"
  else
    # reraise, cause unknown
    raise e
  end
end
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 coolio_amqp_connect(&block)
  coolio do
    AMQ::Client::CoolioClient.connect(:port => 5672, :vhost => "amq_client_testbed", :frame_max => 2**16-1, :heartbeat_interval => 1) do |client|
      yield client
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
amq-client-1.0.4 spec/integration/coolio/spec_helper.rb
amq-client-1.0.3 spec/integration/coolio/spec_helper.rb
amq-client-1.1.0.pre1 spec/integration/coolio/spec_helper.rb
amq-client-1.0.2 spec/integration/coolio/spec_helper.rb
amq-client-1.0.1 spec/integration/coolio/spec_helper.rb
amq-client-1.0.0 spec/integration/coolio/spec_helper.rb
amq-client-0.9.12 spec/integration/coolio/spec_helper.rb
amq-client-0.9.11 spec/integration/coolio/spec_helper.rb
amq-client-0.9.10 spec/integration/coolio/spec_helper.rb
amq-client-0.9.9 spec/integration/coolio/spec_helper.rb
amq-client-0.9.8 spec/integration/coolio/spec_helper.rb
amq-client-0.9.7 spec/integration/coolio/spec_helper.rb
amq-client-0.9.6 spec/integration/coolio/spec_helper.rb
amq-client-0.9.5 spec/integration/coolio/spec_helper.rb
amq-client-0.9.4 spec/integration/coolio/spec_helper.rb
amq-client-1.0.0.pre2 spec/integration/coolio/spec_helper.rb
amq-client-0.9.3 spec/integration/coolio/spec_helper.rb
amq-client-1.0.0.pre1 spec/integration/coolio/spec_helper.rb
amq-client-0.9.2 spec/integration/coolio/spec_helper.rb
amq-client-0.9.1 spec/integration/coolio/spec_helper.rb