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



229
230
231
232
233
234
235
236
237
# File 'lib/rspec-puppet/monkey_patches.rb', line 229

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