1 require 'rspec-system/spec_helper'
2 require 'rspec-system-puppet/helpers'
3 require 'rspec-system-serverspec/helpers'
5 include RSpecSystemPuppet::Helpers
7 include Serverspec::Helper::RSpecSystem
8 include Serverspec::Helper::DetectOS
10 RSpec.configure do |c|
12 proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
17 c.include RSpecSystemPuppet::Helpers
19 # This is where we 'setup' the nodes before running our tests
21 # May as well update here as this can only run on apt-get machines.
22 shell('apt-get update')
26 # Install modules and dependencies
27 puppet_module_install(:source => proj_root, :module_name => 'apt')
28 shell('puppet module install puppetlabs-stdlib')