e86ca5ae9d
or rather right (2 as should be and will be) but currently we use next AND value + type means 3, rounded 4 because we can’t swap types at compile time (as is planned at runtime, we use next OR value)
25 lines
632 B
Ruby
25 lines
632 B
Ruby
require 'rubygems'
|
|
require 'bundler'
|
|
begin
|
|
Bundler.setup(:default, :test)
|
|
rescue Bundler::BundlerError => e
|
|
$stderr.puts e.message
|
|
$stderr.puts "Run `bundle install` to install missing gems"
|
|
exit e.status_code
|
|
end
|
|
if ENV['CODECLIMATE_REPO_TOKEN']
|
|
require 'simplecov'
|
|
SimpleCov.start { add_filter "/test/" }
|
|
end
|
|
|
|
require "minitest/color"
|
|
require "minitest/autorun"
|
|
#require "minitest/fail_fast"
|
|
|
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'test'))
|
|
|
|
require 'rubyx'
|
|
|
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|