diff options
| author | Luke Kanies <luke@madstop.com> | 2008-03-18 17:24:56 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-03-18 17:24:56 -0500 |
| commit | 2d904688559cf6bb863eb2b82447298fbeeece52 (patch) | |
| tree | 5d8ec76718dd714779e0be1bacb65cbe7ef6af47 /spec/integration | |
| parent | e81fc583f1f25241d91e2402b89a06026138a20c (diff) | |
| download | puppet-2d904688559cf6bb863eb2b82447298fbeeece52.tar.gz puppet-2d904688559cf6bb863eb2b82447298fbeeece52.tar.xz puppet-2d904688559cf6bb863eb2b82447298fbeeece52.zip | |
Fixing a unit test for node integration
Diffstat (limited to 'spec/integration')
| -rwxr-xr-x | spec/integration/node.rb | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/spec/integration/node.rb b/spec/integration/node.rb index 87ff448e4..631d4403e 100755 --- a/spec/integration/node.rb +++ b/spec/integration/node.rb @@ -11,14 +11,11 @@ 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 + @terminus = Puppet::Node.indirection.terminus(:memory) + Puppet::Node.indirection.stubs(:terminus).returns @terminus @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 @@ -44,8 +41,4 @@ describe Puppet::Node, " when using the memory terminus" do it "should fail when asked to destroy a node that does not exist" do proc { Puppet::Node.destroy(@node) }.should raise_error(ArgumentError) end - - after do - Puppet.settings.clear - end end |
