diff options
Diffstat (limited to 'spec/unit/indirector/node/null.rb')
| -rwxr-xr-x | spec/unit/indirector/node/null.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/unit/indirector/node/null.rb b/spec/unit/indirector/node/null.rb new file mode 100755 index 000000000..8125e59a1 --- /dev/null +++ b/spec/unit/indirector/node/null.rb @@ -0,0 +1,18 @@ +#!/usr/bin/env ruby + +require File.dirname(__FILE__) + '/../../../spec_helper' + +require 'puppet/indirector/node/null' + +describe Puppet::Node::Null do + before do + @searcher = Puppet::Node::Null.new + end + + it "should call node_merge() on the returned node" do + node = mock 'node' + Puppet::Node.expects(:new).with("mynode").returns(node) + node.expects(:fact_merge) + @searcher.find("mynode") + end +end |
