diff --git a/moduleroot/spec/spec_helper.rb.erb b/moduleroot/spec/spec_helper.rb.erb index aae85936..f92358fc 100644 --- a/moduleroot/spec/spec_helper.rb.erb +++ b/moduleroot/spec/spec_helper.rb.erb @@ -15,9 +15,7 @@ end # puppetlabs_spec_helper will set up coverage if the env variable is set. # We want to do this if lib exists and it hasn't been explicitly set. -if Dir.exist?(File.expand_path('../../lib', __FILE__)) - ENV['COVERAGE'] ||= 'yes' -end +ENV['COVERAGE'] ||= 'yes' if Dir.exist?(File.expand_path('../../lib', __FILE__)) require 'voxpupuli/test/spec_helper' @@ -29,8 +27,8 @@ if File.exist?(File.join(__dir__, 'default_module_facts.yml')) end end end - <% if @configs['augeasproviders'] -%> + # Setup augeasproviders require 'pathname' dir = Pathname.new(__FILE__).parent