root / spec / spec_helper.rb @ 78f22811
Historique | Voir | Annoter | Télécharger (643 octets)
1 | 78f22811 | Steve Traylen | # This file is managed via modulesync
|
---|---|---|---|
2 | # https://github.com/voxpupuli/modulesync
|
||
3 | # https://github.com/voxpupuli/modulesync_config
|
||
4 | |||
5 | # puppetlabs_spec_helper will set up coverage if the env variable is set.
|
||
6 | # We want to do this if lib exists and it hasn't been explicitly set.
|
||
7 | ENV['COVERAGE'] ||= 'yes' if Dir.exist?(File.expand_path('../../lib', __FILE__)) |
||
8 | |||
9 | require 'voxpupuli/test/spec_helper'
|
||
10 | |||
11 | if File.exist?(File.join(__dir__, 'default_module_facts.yml')) |
||
12 | facts = YAML.safe_load(File.read(File.join(__dir__, 'default_module_facts.yml'))) |
||
13 | if facts
|
||
14 | facts.each do |name, value|
|
||
15 | add_custom_fact name.to_sym, value |
||
16 | end
|
||
17 | 64134e4e | tr | end
|
18 | end |