1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
require 'rspec'
require 'puppet-syntax'
def fixture_hiera(list)
fixture_files(list, 'hiera')
end
def fixture_templates(list)
fixture_files(list, 'test_module/templates')
end
def fixture_manifests(list)
fixture_files(list, 'test_module/manifests')
end
def fixture_files(list, path)
list = [list].flatten
list.map { |f| File.expand_path("../fixtures/#{path}/#{f}", __FILE__) }
end
RSpec.configure do |config|
config.color = true
config.formatter = 'documentation'
end
|