summaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index d9db445..28e7b72 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -14,5 +14,10 @@ require 'facter'
Dir["#{dir}/monkey_patches/*.rb"].map { |file| require file }
RSpec.configure do |config|
- config.mock_with :mocha
+ config.mock_with :mocha
+
+ # Ensure that we don't accidentally cache between test cases.
+ config.before :each do
+ Facter.clear
+ end
end