Sha256: 4d0d12ca4deb48dca8c8c4c56e05483d12b19087f7ffe8a2f84f848b934bf568
Contents?: true
Size: 651 Bytes
Versions: 33
Compression:
Stored size: 651 Bytes
Contents
#!/usr/bin/env rspec require 'spec_helper' describe Puppet::Transaction::Report do describe "when using the indirector" do after do 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("apply") terminus.expects(:process).with(report) Puppet::Transaction::Report.indirection.save(report) end end end
Version data entries
33 entries across 33 versions & 3 rubygems