root / spec / spec_helper.rb @ 5fea281f
Historique | Voir | Annoter | Télécharger (670 octets)
1 | 5fea281f | Tim | # Managed by modulesync - DO NOT EDIT
|
---|---|---|---|
2 | # https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
|
||
3 | 78f22811 | Steve Traylen | |
4 | 59c1ddf4 | Steve Traylen | RSpec.configure do |c| |
5 | c.mock_with :mocha
|
||
6 | end
|
||
7 | |||
8 | 78f22811 | Steve Traylen | # puppetlabs_spec_helper will set up coverage if the env variable is set.
|
9 | # We want to do this if lib exists and it hasn't been explicitly set.
|
||
10 | ENV['COVERAGE'] ||= 'yes' if Dir.exist?(File.expand_path('../../lib', __FILE__)) |
||
11 | |||
12 | require 'voxpupuli/test/spec_helper'
|
||
13 | |||
14 | if File.exist?(File.join(__dir__, 'default_module_facts.yml')) |
||
15 | facts = YAML.safe_load(File.read(File.join(__dir__, 'default_module_facts.yml'))) |
||
16 | if facts
|
||
17 | facts.each do |name, value|
|
||
18 | add_custom_fact name.to_sym, value |
||
19 | end
|
||
20 | 64134e4e | tr | end
|
21 | end |