3
require File.dirname(__FILE__) + '/../../../spec_helper'
5
require 'puppet/node/facts'
6
require 'puppet/indirector/facts/yaml'
8
describe Puppet::Node::Facts::Yaml do
9
it "should be a subclass of the Yaml terminus" do
10
Puppet::Node::Facts::Yaml.superclass.should equal(Puppet::Indirector::Yaml)
14
it "should have documentation" do
15
Puppet::Node::Facts::Yaml.doc.should_not be_nil
18
it "should be registered with the facts indirection" do
19
indirection = Puppet::Indirector::Indirection.instance(:facts)
20
Puppet::Node::Facts::Yaml.indirection.should equal(indirection)
23
it "should have its name set to :facts" do
24
Puppet::Node::Facts::Yaml.name.should == :yaml