Sha256: 1f54ea8f70828deb1639a5e498b28c7e45fd22eee4628814a5a156c740deadb1
Contents?: true
Size: 855 Bytes
Versions: 7
Compression:
Stored size: 855 Bytes
Contents
RUBY_1_8 = defined?(RUBY_VERSION) && RUBY_VERSION < '1.9' JRUBY = defined?(JRUBY_VERSION) if RUBY_1_8 puts "Tests for '#{File.expand_path('../..', __FILE__).split('/').last}' not supported on Ruby #{RUBY_VERSION}" exit(0) end if ENV['COVERAGE'] && ENV['CI'].nil? && !RUBY_1_8 require 'simplecov' SimpleCov.start { add_filter "/test|test_/" } end if ENV['CI'] && !RUBY_1_8 require 'simplecov' require 'simplecov-rcov' SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter SimpleCov.start { add_filter "/test|test_|ansi" } end require 'test/unit' require 'shoulda-context' require 'mocha/setup' require 'ansi/code' require 'turn' unless ENV["TM_FILEPATH"] || ENV["NOTURN"] || RUBY_1_8 require 'elasticsearch/extensions' module Elasticsearch module Test class IntegrationTestCase < ::Test::Unit::TestCase end end end
Version data entries
7 entries across 7 versions & 1 rubygems