Sha256: c20f69ef37beaa5f6fe141d4e1c3efbec3ec5155ce9deda83e9c2314617381f5

Contents?: true

Size: 577 Bytes

Versions: 32

Compression:

Stored size: 577 Bytes

Contents

# encoding: utf-8

require "bundler"

Bundler.setup
Bundler.require(:default, :test)

require 'amq/client'

#
# Ruby version-specific
#

require "effin_utf8"

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

RSpec.configure do |c|
  c.filter_run_excluding :nojruby => true if RUBY_PLATFORM =~ /java/
end


module PlatformDetection
  def mri?
    !defined?(RUBY_ENGINE) || (defined?(RUBY_ENGINE) && ("ruby" == RUBY_ENGINE))
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

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