]> gitweb.fluxo.info Git - puppet-ferm.git/commitdiff
cleanup spec_helper.rb
authorTim Meusel <tim@bastelfreak.de>
Tue, 11 Feb 2020 20:18:19 +0000 (21:18 +0100)
committerTim Meusel <tim@bastelfreak.de>
Tue, 11 Feb 2020 20:18:19 +0000 (21:18 +0100)
spec/spec_helper.rb

index d1ca54cb7d14abca2c88ca3e4014c4f18d3b4f1c..b2b270451326c18ed881a84fb01f0cf6410104a2 100644 (file)
@@ -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
-