diff options
author | Luke Kanies <luke@madstop.com> | 2009-08-18 15:57:55 -0700 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2009-08-18 15:57:55 -0700 |
commit | 6bd3627d606cde4bea9293b855be0dd2b1170a92 (patch) | |
tree | 40b864d66aef874566f4fad739502c0f8b3feecc /spec | |
parent | 0ef5f228c20a34a562a1c20b206acf2af0eb41ba (diff) | |
download | puppet-6bd3627d606cde4bea9293b855be0dd2b1170a92.tar.gz puppet-6bd3627d606cde4bea9293b855be0dd2b1170a92.tar.xz puppet-6bd3627d606cde4bea9293b855be0dd2b1170a92.zip |
Adding a global cleanup to the spec_helper
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec_helper.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 7e19b1d07..2825c2c82 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -36,9 +36,10 @@ Spec::Runner.configure do |config| # setup() if respond_to? :setup # end # -# config.prepend_after :all do -# teardown() if respond_to? :teardown -# end + config.prepend_after :each do + Puppet.settings.clear + Puppet::Node::Environment.clear + end end # Set the confdir and vardir to gibberish so that tests |