From 69aa92d14380bc1a538d529d4f85c938e1c0db2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=E1=B4=80=CA=99=C9=AA=E1=B4=87=C9=B4=20W=E1=B4=87=CA=80?= =?UTF-8?q?=C9=B4=CA=9F=C9=AA?= Date: Mon, 2 Mar 2020 15:36:58 +0100 Subject: [PATCH] pdk update --- .sync.yml | 5 +++++ spec/spec_helper.rb | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .sync.yml 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