Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / spec / spec_helper.rb @ 5fea281f

Historique | Voir | Annoter | Télécharger (670 octets)

1
# Managed by modulesync - DO NOT EDIT
2
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
3

    
4
RSpec.configure do |c|
5
  c.mock_with :mocha
6
end
7

    
8
# 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
  end
21
end