summaryrefslogtreecommitdiffstats
path: root/spec/unit/indirector/node/plain.rb
blob: 105d0ed63856ed591a76b9a89afd352e538fcdf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env ruby

require File.dirname(__FILE__) + '/../../../spec_helper'

require 'puppet/indirector/node/plain'

describe Puppet::Node::Plain do
    before do
        @searcher = Puppet::Node::Plain.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