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

Version Path
puppet-2.6.18 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.17 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.16 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.15 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.14 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.13 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.12 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.11 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.10 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.9 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.8 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.7 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.6 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.5 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.4 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.3 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.2 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.1 spec/unit/indirector/node/plain_spec.rb
puppet-2.6.0 spec/unit/indirector/node/plain_spec.rb