From d0852758bb9ca39494eafd383b2b6a78990b5c08 Mon Sep 17 00:00:00 2001 From: Justin Stoller Date: Fri, 8 Aug 2014 11:35:10 -0700 Subject: [PATCH] Call install_* methods only once in spec_helper_acceptance --- spec/spec_helper_acceptance.rb | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index 370de46c0..976a60559 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -3,16 +3,19 @@ unless ENV['RS_PROVISION'] == 'no' + foss_opts = { :version => '3.6.2', + :facter_version => '2.1.0', + :hiera_version => '1.3.4', + :default_action => 'gem_install' } + + if default.is_pe?; then install_pe; else install_puppet( foss_opts ); end + hosts.each do |host| if host['platform'] =~ /debian/ on host, 'echo \'export PATH=/var/lib/gems/1.8/bin/:${PATH}\' >> ~/.bashrc' end - if host.is_pe? - install_pe - else - install_puppet - on host, "mkdir -p #{host['distmoduledir']}" - end + + on host, "mkdir -p #{host['distmoduledir']}" end end