require 'simplecov' SimpleCov.start if ENV['CI'] == 'true' require 'codecov' SimpleCov.formatter = SimpleCov::Formatter::Codecov else SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter end require 'config_curator' RSpec.configure do |c| c.expect_with(:rspec) { |e| e.syntax = :expect } c.before(:each) do allow(FileUtils).to receive(:remove_entry_secure).with(anything) end stderr = $stderr stdout = $stdout c.before(:all) do $stderr = File.open File::NULL, 'w' $stdout = File.open File::NULL, 'w' end c.after(:all) do $stderr = stderr $stdout = stdout end end