Sha256: 5c084be018d301608412a057e053f07966c62051e2bd853a6c3caeea8b8d5921

Contents?: true

Size: 878 Bytes

Versions: 92

Compression:

Stored size: 878 Bytes

Contents

#! /usr/bin/env ruby
require 'spec_helper'

require 'puppet/transaction/report'
require 'puppet/indirector/report/yaml'

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

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

  it "should be registered with the report indirection" do
    indirection = Puppet::Indirector::Indirection.instance(:report)
    Puppet::Transaction::Report::Yaml.indirection.should equal(indirection)
  end

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

  it "should unconditionally save/load from the --lastrunreport setting" do
    subject.path(:me).should == Puppet[:lastrunreport]
  end
end

Version data entries

92 entries across 92 versions & 2 rubygems

Version Path
puppet-3.1.1 spec/unit/indirector/report/yaml_spec.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/spec/unit/indirector/report/yaml_spec.rb
puppet-3.1.0 spec/unit/indirector/report/yaml_spec.rb
puppet-3.1.0.rc2 spec/unit/indirector/report/yaml_spec.rb
puppet-3.1.0.rc1 spec/unit/indirector/report/yaml_spec.rb
puppet-3.0.2 spec/unit/indirector/report/yaml_spec.rb
puppet-3.0.2.rc3 spec/unit/indirector/report/yaml_spec.rb
puppet-3.0.2.rc2 spec/unit/indirector/report/yaml_spec.rb
puppet-3.0.2.rc1 spec/unit/indirector/report/yaml_spec.rb
puppet-3.0.1 spec/unit/indirector/report/yaml_spec.rb
puppet-3.0.1.rc1 spec/unit/indirector/report/yaml_spec.rb
puppet-3.0.0 spec/unit/indirector/report/yaml_spec.rb