module Kernel
Prevent Puppet
from requiring ‘puppet/util/windows’ if we’re pretending to be windows, otherwise it will require other libraries that probably won’t be available on non-windows hosts.
Public Instance Methods
require(path)
click to toggle source
# File lib/rspec-puppet/monkey_patches.rb, line 395 def require(path) return if ['puppet/util/windows', 'win32/registry'].include?(path) && RSpec::Puppet.rspec_puppet_example? && Puppet::Util::Platform.pretend_windows? old_require(path) end
Also aliased as: old_require