# encoding: binary require 'bundler/setup' require 'rspec' begin require 'simplecov' SimpleCov.start do add_filter '/spec/' end rescue LoadError end $: << File.expand_path('../../lib', __FILE__) require "amq/protocol" puts "Running on #{RUBY_VERSION}" module RubyVersionsSUpport def one_point_eight? RUBY_VERSION =~ /^1.8/ end end # RubyVersionsSUpport RSpec.configure do |config| config.include AMQ::Protocol config.include(RubyVersionsSUpport) config.extend(RubyVersionsSUpport) end