Sha256: 45cf39c05660ebd3941b3d1785c16ed34f32682457a546a252bea2bab85eb4e2

Contents?: true

Size: 773 Bytes

Versions: 57

Compression:

Stored size: 773 Bytes

Contents

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

require 'puppet/reports'

processor = Puppet::Reports.report(:rrdgraph)

describe processor do
  include PuppetSpec::Files
  before do
    Puppet[:rrddir] = tmpdir('rrdgraph')
  end

  after do
    FileUtils.rm_rf(Puppet[:rrddir])
  end

  it "should not error on 0.25.x report format" do
    report = YAML.load_file(File.join(PuppetSpec::FIXTURE_DIR, 'yaml/report0.25.x.yaml')).extend processor
    report.expects(:mkhtml)
    lambda{ report.process }.should_not raise_error
  end

  it "should not error on 2.6.x report format" do
    report = YAML.load_file(File.join(PuppetSpec::FIXTURE_DIR, 'yaml/report2.6.x.yaml')).extend processor
    report.expects(:mkhtml)
    lambda{ report.process }.should_not raise_error
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
puppet-3.8.7 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.7-x86-mingw32 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.7-x64-mingw32 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.6 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.6-x86-mingw32 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.6-x64-mingw32 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.5 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.5-x86-mingw32 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.5-x64-mingw32 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.4 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.4-x86-mingw32 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.4-x64-mingw32 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.3 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.3-x86-mingw32 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.3-x64-mingw32 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.2 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.2-x86-mingw32 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.2-x64-mingw32 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.1 spec/unit/reports/rrdgraph_spec.rb
puppet-3.8.1-x86-mingw32 spec/unit/reports/rrdgraph_spec.rb