+++ /dev/null
-if ENV['COVERAGE'] == 'yes'
- require 'coveralls'
- require 'simplecov'
- require 'simplecov-console'
-
- SimpleCov.formatters = [
- SimpleCov::Formatter::HTMLFormatter,
- # SimpleCov::Formatter::Console,
- Coveralls::SimpleCov::Formatter,
- ]
- SimpleCov.start do
- track_files 'lib/**/*.rb'
-
- add_filter '/spec'
-
- # do not track vendored files
- add_filter '/vendor'
- add_filter '/.vendor'
-
- # do not track gitignored files
- # this adds about 4 seconds to the coverage check
- # this could definitely be optimized
- add_filter do |f|
- # system returns true if exit status is 0, which with git-check-ignore means file is ignored
- system("git check-ignore --quiet #{f.filename}")
- end
- end
-end
-
-#This file is generated by ModuleSync, do not edit.
-require 'puppetlabs_spec_helper/module_spec_helper'
-
-# put local configuration and setup into spec_helper_local
-begin
- require 'spec_helper_local'
-rescue LoadError
-end
-
-RSpec.configure do |c|
- c.mock_with :rspec
-end
\ No newline at end of file