Skip to content

Commit

Permalink
update spec/spec_helper_acceptance.rb
Browse files Browse the repository at this point in the history
fix order of requires/includes/configures to properly provide facts for
spec_helper_acceptance_local.rb
  • Loading branch information
Lightning- committed May 29, 2024
1 parent 161399b commit c4ae2ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
include PuppetLitmus
PuppetLitmus.configure!

require 'spec_helper_acceptance_local' if File.file?(File.join(File.dirname(__FILE__), 'spec_helper_acceptance_local.rb'))

if ENV['TARGET_HOST'].nil? || ENV['TARGET_HOST'] == 'localhost'
puts 'Running tests against this machine !'
if Gem.win_platform?
Expand Down Expand Up @@ -52,6 +50,7 @@
else
Net::SSH::Verifiers::Null.new
end
# rubocop:enable Metrics/BlockNesting
host = if ENV['TARGET_HOST'].include?(':')
ENV['TARGET_HOST'].split(':').first
else
Expand Down Expand Up @@ -80,3 +79,5 @@
Specinfra.configuration.winrm = winrm
end
end

require 'spec_helper_acceptance_local' if File.file?(File.join(File.dirname(__FILE__), 'spec_helper_acceptance_local.rb'))

0 comments on commit c4ae2ed

Please sign in to comment.