Skip to content

Commit 02265df

Browse files
committed
Merge pull request puppetlabs#480 from mhaskel/spec_updates
Update spec_helper for more consistency
2 parents f38f75e + ae26f73 commit 02265df

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

spec/spec_helper_acceptance.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ def psql(psql_cmd, user = 'postgres', exit_codes = [0,1], &block)
3535
end
3636

3737
unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
38-
if hosts.first.is_pe?
39-
install_pe
40-
else
41-
install_puppet
42-
end
38+
# This will install the latest available package on el and deb based
39+
# systems fail on windows and osx, and install via gem on other *nixes
40+
foss_opts = { :default_action => 'gem_install' }
41+
42+
if default.is_pe?; then install_pe; else install_puppet( foss_opts ); end
43+
4344
hosts.each do |host|
4445
shell("mkdir -p #{host['distmoduledir']}")
4546
if ! host.is_pe?

0 commit comments

Comments
 (0)