Sha256: a253f59e798a39b3ec1886de119b63ca9b8e01cf0fc7c9278e546d266fb2ab50

Contents?: true

Size: 669 Bytes

Versions: 4

Compression:

Stored size: 669 Bytes

Contents

#! /usr/bin/env ruby -S rspec
require 'spec_helper'

require 'puppet/node'
require 'puppet/indirector/node/yaml'

describe Puppet::Node::Yaml do
  it "should be a subclass of the Yaml terminus" do
    Puppet::Node::Yaml.superclass.should equal(Puppet::Indirector::Yaml)
  end

  it "should have documentation" do
    Puppet::Node::Yaml.doc.should_not be_nil
  end

  it "should be registered with the configuration store indirection" do
    indirection = Puppet::Indirector::Indirection.instance(:node)
    Puppet::Node::Yaml.indirection.should equal(indirection)
  end

  it "should have its name set to :node" do
    Puppet::Node::Yaml.name.should == :yaml
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puppet-3.0.0.rc8 spec/unit/indirector/node/yaml_spec.rb
puppet-3.0.0.rc7 spec/unit/indirector/node/yaml_spec.rb
puppet-3.0.0.rc5 spec/unit/indirector/node/yaml_spec.rb
puppet-3.0.0.rc4 spec/unit/indirector/node/yaml_spec.rb