From: Melissa Stone Date: Mon, 16 Jul 2018 23:02:39 +0000 (-0700) Subject: (maint) Ensure module is installed for testing X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=900733b1bd4b4ccc2381da28314ce367aad6c508;p=puppet-mailalias_core.git (maint) Ensure module is installed for testing `hosts_as` takes a role type, not an array of hosts. Unfortunately, `install_module_on` only takes one host as an argument. We were lucky that `hosts_as('default')` was returning only one host, but we should be explicitly installing this on each host individually. --- diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index 0adde24..e7060a0 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -17,7 +17,9 @@ RSpec.configure do |c| c.before :suite do unless ENV['BEAKER_provision'] == 'no' run_puppet_install_helper - install_module_on(hosts_as(hosts)) + hosts.each do |host| + install_module_on(host) + end install_module_dependencies_on(hosts) end end