Sha256: a7d1b9dd8789009115e86ece59c6cdcbc26f10a59606623077d572a81f3b31ad

Contents?: true

Size: 618 Bytes

Versions: 4

Compression:

Stored size: 618 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
config_curator-1.0.0 spec/spec_helper.rb
config_curator-0.5.0 spec/spec_helper.rb
config_curator-0.4.0 spec/spec_helper.rb
config_curator-0.3.0 spec/spec_helper.rb