aboutsummaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorJosh Cooper <josh@puppet.com>2018-06-28 14:48:40 -0700
committerJosh Cooper <josh@puppet.com>2018-06-28 14:48:40 -0700
commit527447f54f40d2eed4d52a0477f0fcc1d8b8329b (patch)
tree2dfb11615f92f6ae710c857c5f81b73a031f5ffd /spec/spec_helper.rb
parenta73ad49d34744021f6c4fc090b54c907201de8a2 (diff)
downloadpuppet-augeas_core-527447f54f40d2eed4d52a0477f0fcc1d8b8329b.tar.gz
puppet-augeas_core-527447f54f40d2eed4d52a0477f0fcc1d8b8329b.tar.bz2
pdk update using 1.6.0
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 2d5f003..e69d11d 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,3 +1,4 @@
+
require 'puppetlabs_spec_helper/module_spec_helper'
require 'rspec-puppet-facts'
@@ -33,3 +34,12 @@ RSpec.configure do |c|
Puppet.settings[:strict] = :warning
end
end
+
+def ensure_module_defined(module_name)
+ module_name.split('::').reduce(Object) do |last_module, next_module|
+ last_module.const_set(next_module, Module.new) unless last_module.const_defined?(next_module)
+ last_module.const_get(next_module)
+ end
+end
+
+# 'spec_overrides' from sync.yml will appear below this line