Sha256: 746a58dbd7d39b8eb2b3d09d926de036bf44bfb59409275165358b6a0cf077e1

Contents?: true

Size: 762 Bytes

Versions: 9

Compression:

Stored size: 762 Bytes

Contents

#!/usr/bin/env ruby

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

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

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


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

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
puppet-0.25.5 spec/unit/indirector/facts/yaml.rb
puppet-0.25.4 spec/unit/indirector/facts/yaml.rb
puppet-0.25.3 spec/unit/indirector/facts/yaml.rb
puppet-0.24.9 spec/unit/indirector/facts/yaml.rb
puppet-0.25.2 spec/unit/indirector/facts/yaml.rb
puppet-0.25.1 spec/unit/indirector/facts/yaml.rb
puppet-0.25.0 spec/unit/indirector/facts/yaml.rb
puppet-0.24.7 spec/unit/indirector/facts/yaml.rb
puppet-0.24.8 spec/unit/indirector/facts/yaml.rb