aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelissa Stone <melissa@puppet.com>2018-07-16 16:02:39 -0700
committerMelissa Stone <melissa@puppet.com>2018-07-16 16:30:15 -0700
commit900733b1bd4b4ccc2381da28314ce367aad6c508 (patch)
treea2981d2701e06c64f3e204bebf7e95d8d396317a
parenta707d78c4beb2c57e66aecd8b7e91a1c48fdf82d (diff)
downloadpuppet-mailalias_core-900733b1bd4b4ccc2381da28314ce367aad6c508.tar.gz
puppet-mailalias_core-900733b1bd4b4ccc2381da28314ce367aad6c508.tar.bz2
(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.
-rw-r--r--spec/spec_helper_acceptance.rb4
1 files changed, 3 insertions, 1 deletions
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