(MODULES-9482) Bump translate dependency upper range
[puppet-modules/puppetlabs-apt.git] / spec / spec_helper.rb
index a7281d530037b7c417fa03ab50dad09176ff2b1d..35654b3d2cab1789591caaaa414631fd7ded9376 100644 (file)
@@ -36,8 +36,8 @@ 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)
+    last_module.const_set(next_module, Module.new) unless last_module.const_defined?(next_module, false)
+    last_module.const_get(next_module, false)
   end
 end