module-puppetdb/spec/spec_helper_system.rb
Ken Barber d3bf0a09ae (GH-91) Update to use rspec-system-puppet 2.x
This will bring us up-to-date with the latest version of the rspec-system-*
family.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-21 14:25:28 +01:00

26 lines
693 B
Ruby

require 'rspec-system/spec_helper'
require 'rspec-system-puppet/helpers'
include RSpecSystemPuppet::Helpers
RSpec.configure do |c|
# Project root for the firewall code
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
# Enable colour in Jenkins
c.tty = true
# Import puppet helpers
c.include RSpecSystemPuppet::Helpers
c.extend RSpecSystemPuppet::Helpers
# This is where we 'setup' the nodes before running our tests
c.before :suite do
# Install puppet
puppet_install
puppet_master_install
# Copy this module into the module path of the test node
puppet_module_install(:source => proj_root, :module_name => 'puppetdb')
end
end