File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
13# Managed by modulesync - DO NOT EDIT
24# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
35
46# puppetlabs_spec_helper will set up coverage if the env variable is set.
57# We want to do this if lib exists and it hasn't been explicitly set.
6- ENV [ 'COVERAGE' ] ||= 'yes' if Dir . exist? ( File . expand_path ( '../../ lib' , __FILE__ ) )
8+ ENV [ 'COVERAGE' ] ||= 'yes' if Dir . exist? ( File . expand_path ( '../lib' , __dir__ ) )
79
810require 'voxpupuli/test/spec_helper'
911
1012if File . exist? ( File . join ( __dir__ , 'default_module_facts.yml' ) )
1113 facts = YAML . safe_load ( File . read ( File . join ( __dir__ , 'default_module_facts.yml' ) ) )
12- if facts
13- facts . each do |name , value |
14- add_custom_fact name . to_sym , value
15- end
14+ facts &.each do |name , value |
15+ add_custom_fact name . to_sym , value
1616 end
1717end
You can’t perform that action at this time.
0 commit comments