Sha256: 27715dcd5b4656b281f99dd3f492c47ca390599be15649030ea84f4e4e2e34d8
Contents?: true
Size: 464 Bytes
Versions: 19
Compression:
Stored size: 464 Bytes
Contents
#!/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) request = stub 'request', :key => "mynode" @searcher.find(request) end end
Version data entries
19 entries across 19 versions & 1 rubygems