Sha256: 62c342ec463517eb835c370962ece212091a5bc2de0683c9e3eafd24fdc9a3da
Contents?: true
Size: 651 Bytes
Versions: 122
Compression:
Stored size: 651 Bytes
Contents
#! /usr/bin/env ruby 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
122 entries across 122 versions & 2 rubygems