Added puppetlabs-firewall (required by puppetlabs-postgresql), updated the other modules.
This commit is contained in:
parent
5f4b7a3b72
commit
dee66abcdd
137 changed files with 11118 additions and 419 deletions
29
modules/firewall/spec/spec_helper.rb
Normal file
29
modules/firewall/spec/spec_helper.rb
Normal file
|
@ -0,0 +1,29 @@
|
|||
dir = File.expand_path(File.dirname(__FILE__))
|
||||
$LOAD_PATH.unshift File.join(dir, 'lib')
|
||||
|
||||
# Don't want puppet getting the command line arguments for rake or autotest
|
||||
ARGV.clear
|
||||
|
||||
require 'rubygems'
|
||||
require 'bundler/setup'
|
||||
require 'rspec-puppet'
|
||||
|
||||
Bundler.require :default, :test
|
||||
|
||||
require 'pathname'
|
||||
require 'tmpdir'
|
||||
|
||||
Pathname.glob("#{dir}/shared_behaviours/**/*.rb") do |behaviour|
|
||||
require behaviour.relative_path_from(Pathname.new(dir))
|
||||
end
|
||||
|
||||
fixture_path = File.expand_path(File.join(__FILE__, '..', 'fixtures'))
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.tty = true
|
||||
config.mock_with :rspec do |c|
|
||||
c.syntax = :expect
|
||||
end
|
||||
config.module_path = File.join(fixture_path, 'modules')
|
||||
config.manifest_dir = File.join(fixture_path, 'manifests')
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue