Sha256: cba33d3d6b4ca163f5a45cd09b1337ffd72887c9dd1011c959daca5a4f2953a5

Contents?: true

Size: 820 Bytes

Versions: 6

Compression:

Stored size: 820 Bytes

Contents

#!/usr/bin/env ruby
#
#  Created by Luke Kanies on 2008-4-8.
#  Copyright (c) 2008. All rights reserved.

require File.dirname(__FILE__) + '/../../spec_helper'

describe Puppet::Transaction::Report do
    describe "when using the indirector" do
        after do
            Puppet::Util::Cacher.expire
            Puppet.settings.stubs(:use)
        end

        it "should be able to delegate to the :processor terminus" do
            Puppet::Transaction::Report.indirection.stubs(:terminus_class).returns :processor

            terminus = Puppet::Transaction::Report.indirection.terminus(:processor)

            Facter.stubs(:value).returns "host.domain.com"

            report = Puppet::Transaction::Report.new

            terminus.expects(:process).with(report)

            report.save
        end
    end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
puppet-0.25.5 spec/integration/transaction/report.rb
puppet-0.25.4 spec/integration/transaction/report.rb
puppet-0.25.3 spec/integration/transaction/report.rb
puppet-0.25.2 spec/integration/transaction/report.rb
puppet-0.25.1 spec/integration/transaction/report.rb
puppet-0.25.0 spec/integration/transaction/report.rb