spec/unit/util/loader_spec.rb in facter-1.5.9 vs spec/unit/util/loader_spec.rb in facter-1.6.0
- old
+ new
@@ -17,9 +17,13 @@
end
end
describe Facter::Util::Loader do
+ before :each do
+ Facter::Util::Loader.any_instance.unstub(:load_all)
+ end
+
def with_env(values)
old = {}
values.each do |var, value|
if old_val = ENV[var]
old[var] = old_val