~ubuntu-branches/ubuntu/oneiric/puppet/oneiric-security

« back to all changes in this revision

Viewing changes to spec/unit/indirector/facts/yaml.rb

  • Committer: Bazaar Package Importer
  • Author(s): Micah Anderson
  • Date: 2008-07-26 15:43:45 UTC
  • mfrom: (1.1.8 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080726154345-c03m49twzxewdwjn
Tags: 0.24.5-2
* Fix puppetlast to work with 0.24.5
* Adjust logcheck to match against new log messages in 0.24.5
* Update standards version to 3.8.0 (no changes)
* Update changelog to reduce length of line to make lintian happy

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env ruby
 
2
 
 
3
require File.dirname(__FILE__) + '/../../../spec_helper'
 
4
 
 
5
require 'puppet/node/facts'
 
6
require 'puppet/indirector/facts/yaml'
 
7
 
 
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)
 
11
    end
 
12
 
 
13
 
 
14
    it "should have documentation" do
 
15
        Puppet::Node::Facts::Yaml.doc.should_not be_nil
 
16
    end
 
17
 
 
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)
 
21
    end
 
22
 
 
23
    it "should have its name set to :facts" do
 
24
        Puppet::Node::Facts::Yaml.name.should == :yaml
 
25
    end
 
26
end