Sha256: 1453689c512d9efe137c20774555b0b17e372fa9a6732e127bef070796843d34

Contents?: true

Size: 607 Bytes

Versions: 5

Compression:

Stored size: 607 Bytes

Contents

require 'coveralls'
require 'simplecov'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]

SimpleCov.start

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
config_curator-0.2.4 spec/spec_helper.rb
config_curator-0.2.3 spec/spec_helper.rb
config_curator-0.2.2 spec/spec_helper.rb
config_curator-0.2.1 spec/spec_helper.rb
config_curator-0.2.0 spec/spec_helper.rb