Class: Puppet::Util::Autoload

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec-puppet/monkey_patches.rb

Class Method Summary collapse

Class Method Details

.load_file(*args) ⇒ Object



219
220
221
222
223
224
225
226
227
# File 'lib/rspec-puppet/monkey_patches.rb', line 219

def self.load_file(*args)
  if RSpec::Puppet.rspec_puppet_example?
    RSpec::Puppet::Consts.without_stubs do
      old_load_file(*args)
    end
  else
    old_load_file(*args)
  end
end