diff options
author | Luke Kanies <luke@madstop.com> | 2008-04-11 13:01:42 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-04-11 13:01:42 -0500 |
commit | fb05ef3c96038d67a46eb142202af186ad6cb0b3 (patch) | |
tree | 148e8b882e5c8104c4f3fa8ecc4288e8608f812d /spec/unit/node.rb | |
parent | b49fb68f768e8b98c555ef0ae08a7bd22f5d36bd (diff) | |
parent | b49fd495622b15f96faf944db1e70cbe9e7fe7c4 (diff) | |
download | puppet-fb05ef3c96038d67a46eb142202af186ad6cb0b3.tar.gz puppet-fb05ef3c96038d67a46eb142202af186ad6cb0b3.tar.xz puppet-fb05ef3c96038d67a46eb142202af186ad6cb0b3.zip |
Merge branch '0.24.x'
Diffstat (limited to 'spec/unit/node.rb')
-rwxr-xr-x | spec/unit/node.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/node.rb b/spec/unit/node.rb index bb99378d9..348e160cf 100755 --- a/spec/unit/node.rb +++ b/spec/unit/node.rb @@ -133,9 +133,9 @@ end describe Puppet::Node, " when indirecting" do it "should redirect to the indirection" do - @indirection = mock 'indirection' + @indirection = stub 'indirection', :name => :node Puppet::Node.stubs(:indirection).returns(@indirection) - @indirection.expects(:find).with(:my_node.to_s) + @indirection.expects(:find) Puppet::Node.find(:my_node.to_s) end |