Sha256: 647e5b4ee1e952a22893f37a4c5fe4f546099518e7eb7fa184797b5a7787cd0b
Contents?: true
Size: 875 Bytes
Versions: 2
Compression:
Stored size: 875 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 before do Puppet.settings.stubs(:use) end after do Puppet::Transaction::Report.indirection.clear_cache 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppet-0.24.9 | spec/integration/transaction/report.rb |
puppet-0.24.8 | spec/integration/transaction/report.rb |