From: Tim Meusel Date: Tue, 11 Feb 2020 20:18:19 +0000 (+0100) Subject: cleanup spec_helper.rb X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=be298bed6169c9f59148042af47e12faffe48881;p=puppet-ferm.git cleanup spec_helper.rb --- diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index d1ca54c..b2b2704 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -4,9 +4,7 @@ # 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' @@ -18,4 +16,3 @@ if File.exist?(File.join(__dir__, 'default_module_facts.yml')) end end end -