summaryrefslogtreecommitdiff
path: root/spec/acceptance
diff options
context:
space:
mode:
authorHunter Haugen <hunter@puppetlabs.com>2014-07-11 15:15:34 -0700
committerHunter Haugen <hunter@puppetlabs.com>2014-07-11 15:15:34 -0700
commit3441bc07fedb635e7682e29583d539dd712ea64c (patch)
tree7aec89625a6d66d36c9e7fce0fe14e0cad507567 /spec/acceptance
parent29982f95c12dcb8f161808a5f388e01999dffc33 (diff)
The helper calls host outside of an each loop
Diffstat (limited to 'spec/acceptance')
-rw-r--r--spec/acceptance/beaker_helper.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/spec/acceptance/beaker_helper.rb b/spec/acceptance/beaker_helper.rb
index 05aa4e7..592b15d 100644
--- a/spec/acceptance/beaker_helper.rb
+++ b/spec/acceptance/beaker_helper.rb
@@ -12,11 +12,13 @@ test_name "Installing Puppet and vcsrepo module" do
end
step 'Ensure we can install our module' do
- # We ask the host to interpolate it's distmoduledir because we don't
- # actually know it on Windows until we've let it redirect us (depending
- # on whether we're running as a 32/64 bit process on 32/64 bit Windows
- moduledir = on(host, "echo #{host['distmoduledir']}").stdout.chomp
- on host, "mkdir -p #{moduledir}"
+ hosts.each do |host|
+ # We ask the host to interpolate it's distmoduledir because we don't
+ # actually know it on Windows until we've let it redirect us (depending
+ # on whether we're running as a 32/64 bit process on 32/64 bit Windows
+ moduledir = on(host, "echo #{host['distmoduledir']}").stdout.chomp
+ on host, "mkdir -p #{moduledir}"
+ end
end
step 'install module' do