Skip to content

Commit

Permalink
Merge pull request #150 from mhaskel/fix-1404
Browse files Browse the repository at this point in the history
Fix spec_helper_acceptance to work on Ubuntu 14.04.
  • Loading branch information
Ashley Penney committed May 2, 2014
2 parents f86f8da + a7a724e commit 23acfa4
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@

UNSUPPORTED_PLATFORMS = [ 'windows', 'Solaris' ]

unless ENV['RS_PROVISION'] == 'no'
unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
if hosts.first.is_pe?
install_pe
else
install_puppet
end
hosts.each do |host|
# Install Puppet
if host.is_pe?
install_pe
else
install_package host, 'rubygems'
on host, 'gem install puppet --no-ri --no-rdoc'
on host, "mkdir -p #{host['distmoduledir']}"
end
on hosts, "mkdir -p #{host['distmoduledir']}"
end
end

Expand Down

0 comments on commit 23acfa4

Please sign in to comment.