colorls/spec/spec_helper.rb

28 lines
666 B
Ruby
Raw Normal View History

require 'simplecov'
SimpleCov.start
2018-12-28 16:28:21 +01:00
if ENV['CI'] == 'true'
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
end
2017-07-05 16:23:11 +02:00
require 'bundler/setup'
require 'colorls'
2017-07-10 13:13:39 +02:00
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |file| require file }
# disable rainbow globally to ease checking expected output
Rainbow.enabled = false
2017-07-05 16:23:11 +02:00
RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = '.rspec_status'
# Disable RSpec exposing methods globally on `Module` and `main`
config.disable_monkey_patching!
config.expect_with :rspec do |c|
c.syntax = :expect
end
end