Skip to content

Commit

Permalink
rubocop: fix spec_helper.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Feb 11, 2020
1 parent af588b0 commit 0a33abe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions moduleroot/spec/spec_helper.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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
Expand Down

0 comments on commit 0a33abe

Please sign in to comment.