[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5
Matt Robinson
matt at puppetlabs.com
Tue May 10 08:06:16 UTC 2011
The following commit has been merged in the experimental branch:
commit cf873c63f8aad942776d27900dc35470d2508ae8
Author: Matt Robinson <matt at puppetlabs.com>
Date: Wed Mar 16 20:37:46 2011 -0700
maint: Silence test output in the spec run
There was a test that output 'false' in the middle of the spec run.
This fixes that and makes the test a little stronger, because we
actually assert what puts is writing to standard out.
Reviewed-by: Nick Lewis <nick at puppetlabs.com>
diff --git a/spec/unit/application/agent_spec.rb b/spec/unit/application/agent_spec.rb
index cc745d1..8040578 100755
--- a/spec/unit/application/agent_spec.rb
+++ b/spec/unit/application/agent_spec.rb
@@ -268,8 +268,9 @@ describe Puppet::Application::Agent do
end
it "should exit after printing puppet config if asked to in Puppet config" do
- Puppet[:configprint] = "pluginsync"
-
+ Puppet[:modulepath] = '/my/path'
+ Puppet[:configprint] = "modulepath"
+ Puppet::Util::Settings.any_instance.expects(:puts).with('/my/path')
lambda { @puppetd.setup }.should raise_error(SystemExit)
end
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list