diff options
author | Michael Hashizume <michael.hashizume@puppet.com> | 2024-06-04 10:46:36 -0700 |
---|---|---|
committer | Michael Hashizume <michael.hashizume@puppet.com> | 2024-06-04 10:46:36 -0700 |
commit | 3c62ed96375510ab568b6d1924122f0c5d87a0c7 (patch) | |
tree | 960b681a06d90bd48f353043efa63f0b684ebd44 /spec/spec_helper.rb | |
parent | 097d86c93f00b4987e384de839645f90376e9291 (diff) | |
download | puppet-mailalias_core-3c62ed96375510ab568b6d1924122f0c5d87a0c7.tar.gz puppet-mailalias_core-3c62ed96375510ab568b6d1924122f0c5d87a0c7.tar.bz2 |
Update to PDK template 3.2.0
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6820ceb..ae7c1f6 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -25,7 +25,8 @@ default_fact_files.each do |f| next unless File.exist?(f) && File.readable?(f) && File.size?(f) begin - default_facts.merge!(YAML.safe_load(File.read(f), permitted_classes: [], permitted_symbols: [], aliases: true)) + require 'deep_merge' + default_facts.deep_merge!(YAML.safe_load(File.read(f), permitted_classes: [], permitted_symbols: [], aliases: true)) rescue StandardError => e RSpec.configuration.reporter.message "WARNING: Unable to load #{f}: #{e}" end @@ -33,7 +34,7 @@ end # read default_facts and merge them over what is provided by facterdb default_facts.each do |fact, value| - add_custom_fact fact, value + add_custom_fact fact, value, merge_facts: true end RSpec.configure do |c| |