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.8.7 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.7-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.7-x64-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.6 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.6-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.6-x64-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.5 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.5-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.5-x64-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.4 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.4-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.4-x64-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.3 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.3-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.3-x64-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.2 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.2-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.2-x64-mingw32 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.1 spec/unit/indirector/report/yaml_spec.rb
puppet-3.8.1-x86-mingw32 spec/unit/indirector/report/yaml_spec.rb