diff options
author | Hunter Haugen <hunter@puppetlabs.com> | 2014-07-11 15:16:33 -0700 |
---|---|---|
committer | Hunter Haugen <hunter@puppetlabs.com> | 2014-07-11 15:16:33 -0700 |
commit | 9dfea1f1898bedb04ec829a292c80f69d7f7d95c (patch) | |
tree | 7aec89625a6d66d36c9e7fce0fe14e0cad507567 /spec | |
parent | 29982f95c12dcb8f161808a5f388e01999dffc33 (diff) | |
parent | 3441bc07fedb635e7682e29583d539dd712ea64c (diff) | |
download | puppet-vcsrepo-9dfea1f1898bedb04ec829a292c80f69d7f7d95c.tar.gz puppet-vcsrepo-9dfea1f1898bedb04ec829a292c80f69d7f7d95c.tar.bz2 |
Merge pull request #193 from hunner/fix_helper
The helper calls host outside of an each loop
Diffstat (limited to 'spec')
-rw-r--r-- | spec/acceptance/beaker_helper.rb | 12 |
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 |