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.6.2-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.6.1 spec/unit/indirector/report/yaml_spec.rb
puppet-3.6.1-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.6.0 spec/unit/indirector/report/yaml_spec.rb
puppet-3.6.0-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.6.0.rc1 spec/unit/indirector/report/yaml_spec.rb
puppet-3.6.0.rc1-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.5.1 spec/unit/indirector/report/yaml_spec.rb
puppet-3.5.1-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.5.1.rc1 spec/unit/indirector/report/yaml_spec.rb
puppet-3.5.1.rc1-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.5.0.rc3 spec/unit/indirector/report/yaml_spec.rb
puppet-3.5.0.rc3-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.5.0.rc2 spec/unit/indirector/report/yaml_spec.rb
puppet-3.5.0.rc2-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.5.0.rc1 spec/unit/indirector/report/yaml_spec.rb
puppet-3.5.0.rc1-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.4.3 spec/unit/indirector/report/yaml_spec.rb
puppet-3.4.2 spec/unit/indirector/report/yaml_spec.rb
puppet-3.4.1 spec/unit/indirector/report/yaml_spec.rb