From f3b2a39c5dbb2324d587389f2ecf9841206643aa Mon Sep 17 00:00:00 2001 From: Corey Osman Date: Wed, 24 Jul 2019 18:04:00 -0400 Subject: [PATCH] Filters out the configured bundler path Without this change simplecov shows reports for all the gems underneath the configured bundle path. --- moduleroot/spec/spec_helper.rb.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moduleroot/spec/spec_helper.rb.erb b/moduleroot/spec/spec_helper.rb.erb index b8096f21..dd17a67a 100644 --- a/moduleroot/spec/spec_helper.rb.erb +++ b/moduleroot/spec/spec_helper.rb.erb @@ -9,6 +9,7 @@ end <%- end -%> require 'puppetlabs_spec_helper/module_spec_helper' require 'rspec-puppet-facts' +require 'bundler' include RspecPuppetFacts if File.exist?(File.join(__dir__, 'default_module_facts.yml')) @@ -47,6 +48,7 @@ if Dir.exist?(File.expand_path('../../lib', __FILE__)) add_filter '/spec' add_filter '/vendor' add_filter '/.vendor' + add_filter Bundler.configured_bundle_path.path end end