1 require 'beaker-rspec/spec_helper'
2 require 'beaker-rspec/helpers/serverspec'
4 unless ENV['RS_PROVISION'] == 'no'
5 # This will install the latest available package on el and deb based
6 # systems fail on windows and osx, and install via gem on other *nixes
7 foss_opts = {:default_action => 'gem_install'}
9 if default.is_pe?; then
12 install_puppet(foss_opts);
16 if host['platform'] =~ /debian/
17 on host, 'echo \'export PATH=/var/lib/gems/1.8/bin/:${PATH}\' >> ~/.bashrc'
18 on host, "mkdir -p #{host['distmoduledir']}"
23 RSpec.configure do |c|
25 proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
27 # Readable test descriptions
28 c.formatter = :documentation
30 # Configure all nodes in nodeset
32 # Install module and dependencies
34 copy_root_module_to(host, :source => proj_root, :module_name => 'inifile')
38 c.treat_symbols_as_metadata_keys_with_true_values = true