[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. puppet-0.24.5-rc3-1601-gf8c1b08

James Turnbull james at lovedthanlost.net
Fri Jan 15 09:07:47 UTC 2010


The following commit has been merged in the upstream branch:
commit 3528a7b98c300f3ffa363d232b5f577f298390eb
Author: Jesse Wolfe <jes5199 at gmail.com>
Date:   Mon Dec 14 23:47:48 2009 -0800

    2850 spec/unit/application/puppetd.rb generates warnings if run with certain other tests
    
    Puppet[:libdir] is nil due to stubbing, causing an exception in autoload.
    
    Depending on the order of loaded libs, sometimes this exception is
    logged using Kernel#warn, but sometimes it's logged using Puppet.err
    Only Kernel#warn writes to the terminal during unit testing!

diff --git a/spec/unit/application/puppetd.rb b/spec/unit/application/puppetd.rb
index e5a5167..ec2fd54 100755
--- a/spec/unit/application/puppetd.rb
+++ b/spec/unit/application/puppetd.rb
@@ -173,6 +173,7 @@ describe "puppetd" do
             Puppet.stubs(:info)
             FileTest.stubs(:exists?).returns(true)
             Puppet.stubs(:[])
+            Puppet.stubs(:[]).with(:libdir).returns("/dev/null/lib")
             Puppet.settings.stubs(:print_config?)
             Puppet.settings.stubs(:print_config)
             Puppet::SSL::Host.stubs(:ca_location=)

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list