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