puppet-strings/spec/spec_helper_acceptance.rb

26 lines
684 B
Ruby
Raw Normal View History

require 'beaker-rspec/spec_helper'
require 'beaker-rspec/helpers/serverspec'
unless ENV['RS_PROVISION'] == 'no'
install_puppet
end
RSpec.configure do |c|
# Readable test descriptions
c.formatter = :documentation
# Configure all nodes in nodeset
c.before :suite do
hosts.each do |host|
scp_to(host, Dir.glob('puppet-strings*.gem').first, 'puppet-strings.gem')
on host, 'gem install puppet-strings.gem'
scp_to(host, Dir.glob('acceptance/fixtures/modules/test/pkg/username-test*.gz').first, 'test.tar.gz')
on host, puppet('module', 'install', 'test.tar.gz')
on host, 'gem install yard'
on host, 'gem install rgen'
end
end
end