diff options
| author | Luke Kanies <luke@madstop.com> | 2007-09-20 15:24:20 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-09-20 15:24:20 -0500 |
| commit | 8212f88ce3ad2ddbc7e1e713111d9478171c42b8 (patch) | |
| tree | 5c61cfd3ca2b76d9ab093feeee89c351796667e0 /spec/unit/node/node.rb | |
| parent | 4cde0344b50084b897792ba4cdd1f62a733d7f53 (diff) | |
| download | puppet-8212f88ce3ad2ddbc7e1e713111d9478171c42b8.tar.gz puppet-8212f88ce3ad2ddbc7e1e713111d9478171c42b8.tar.xz puppet-8212f88ce3ad2ddbc7e1e713111d9478171c42b8.zip | |
Fixing all existing spec tests so that they now
pass given the redesign that Rick implemented.
This was mostly a question of fixing
the method names and the mocks.
Diffstat (limited to 'spec/unit/node/node.rb')
| -rwxr-xr-x | spec/unit/node/node.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/node/node.rb b/spec/unit/node/node.rb index 9342dc5ce..899d81ac7 100755 --- a/spec/unit/node/node.rb +++ b/spec/unit/node/node.rb @@ -85,7 +85,7 @@ end describe Puppet::Node, " when merging facts" do before do @node = Puppet::Node.new("testnode") - Puppet::Node::Facts.stubs(:get).with(@node.name).returns(Puppet::Node::Facts.new(@node.name, "one" => "c", "two" => "b")) + Puppet::Node::Facts.stubs(:find).with(@node.name).returns(Puppet::Node::Facts.new(@node.name, "one" => "c", "two" => "b")) end it "should prefer parameters already set on the node over facts from the node" do @@ -110,12 +110,12 @@ end describe Puppet::Node, " when indirecting" do before do @terminus = mock 'terminus' - Puppet::Indirector.terminus(:node, Puppet[:node_source]).stubs(:new).returns(@terminus) + Puppet::Node.stubs(:indirection).returns(@terminus) end it "should redirect to the specified node source" do - @terminus.expects(:get).with(:my_node) - Puppet::Node.get(:my_node) + @terminus.expects(:find).with(:my_node.to_s) + Puppet::Node.find(:my_node.to_s) end after do |
