From: David Schmitt Date: Tue, 5 May 2015 09:53:04 +0000 (+0100) Subject: spec_helper: Remove unneccesary stubbing X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=6a0a6153d59715d07f6bc50135df4adbae3d1334;p=puppet-stdlib.git spec_helper: Remove unneccesary stubbing This only roots all Facter instances into memory, while something already creates a new Facter instance each run. --- diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index d3c9847..896cb83 100755 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -25,7 +25,6 @@ RSpec.configure do |config| # test cases. This requires each example group to explicitly load the # facts being exercised with something like # Facter.collection.loader.load(:ipaddress) - Facter::Util::Loader.any_instance.stubs(:load_all) Facter.clear Facter.clear_messages