diff --git a/.sync.yml b/.sync.yml new file mode 100644 index 0000000..a5e7789 --- /dev/null +++ b/.sync.yml @@ -0,0 +1,5 @@ +--- +spec/spec_helper.rb: + mock_with: ':rspec' + coverage_report: true + minimum_code_coverage_percentage: 66 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 35a1408..c485ebe 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,9 @@ # frozen_string_literal: true +RSpec.configure do |c| + c.mock_with :rspec +end + require 'puppetlabs_spec_helper/module_spec_helper' require 'rspec-puppet-facts' @@ -41,6 +45,7 @@ end c.filter_run_excluding(bolt: true) unless ENV['GEM_BOLT'] c.after(:suite) do + RSpec::Puppet::Coverage.report!(66) end end