diff options
author | Luke Kanies <luke@madstop.com> | 2008-02-28 15:54:03 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-02-28 15:54:03 -0600 |
commit | 29aafb4e98b8751a11787be33b2dfcf910a84fa3 (patch) | |
tree | 536a7de2c159bfd63f94df0a70e031819bbaaa26 | |
parent | c0b5352851d3fdef20b2a432f6f06d31fdc9ce99 (diff) | |
download | puppet-29aafb4e98b8751a11787be33b2dfcf910a84fa3.tar.gz puppet-29aafb4e98b8751a11787be33b2dfcf910a84fa3.tar.xz puppet-29aafb4e98b8751a11787be33b2dfcf910a84fa3.zip |
Fixing an integration test so it cleans up after itself
-rwxr-xr-x | spec/integration/node.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/integration/node.rb b/spec/integration/node.rb index e4a311998..87ff448e4 100755 --- a/spec/integration/node.rb +++ b/spec/integration/node.rb @@ -10,10 +10,15 @@ require 'puppet/node' describe Puppet::Node, " when using the memory terminus" do before do @name = "me" + @old_terminus = Puppet::Node.indirection.terminus_class Puppet::Node.terminus_class = :memory @node = Puppet::Node.new(@name) end + after do + Puppet::Node.terminus_class = @old_terminus + end + it "should find no nodes by default" do Puppet::Node.find(@name).should be_nil end |