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 Jun 20, 2024
1 parent 3db6d8d commit a42da68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

require 'serverspec'
require 'puppet_litmus'
require 'spec_helper_acceptance_local' if File.file?(File.join(File.dirname(__FILE__), 'spec_helper_acceptance_local.rb'))
include PuppetLitmus
PuppetLitmus.configure!

if ENV['TARGET_HOST'].nil? || ENV['TARGET_HOST'] == 'localhost'
puts 'Running tests against this machine !'
Expand Down Expand Up @@ -79,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 a42da68

Please sign in to comment.