Fix the spec test for agent fingerprinting with stubbing of puts. This is because it no longer uses the Puppet.logging functionality, so we need to stub Kernel as well.
Signed-off-by: Ben Hughes <[email protected]> --- spec/unit/application/agent_spec.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/spec/unit/application/agent_spec.rb b/spec/unit/application/agent_spec.rb index 8f498d4..9cc32bb 100755 --- a/spec/unit/application/agent_spec.rb +++ b/spec/unit/application/agent_spec.rb @@ -563,7 +563,7 @@ describe Puppet::Application::Agent do @host.stubs(:certificate).returns(@cert) @cert.stubs(:fingerprint).with(:MD5).returns("DIGEST") - Puppet.expects(:notice).with("DIGEST") + @puppetd.expects(:puts).with "DIGEST" @puppetd.fingerprint end -- 1.7.4.2 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
