aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Meusel <tim@bastelfreak.de>2020-02-11 21:18:19 +0100
committerTim Meusel <tim@bastelfreak.de>2020-02-11 21:18:19 +0100
commitbe298bed6169c9f59148042af47e12faffe48881 (patch)
tree4cdeb3f5c8e3d12e0ebb7cc2907b2e78940f85eb /spec
parentf8faa812549dcdfd64ceacae647039acb5d8e7a3 (diff)
downloadpuppet-ferm-be298bed6169c9f59148042af47e12faffe48881.tar.gz
puppet-ferm-be298bed6169c9f59148042af47e12faffe48881.tar.bz2
cleanup spec_helper.rb
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb5
1 files changed, 1 insertions, 4 deletions
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
-