From cf873c63f8aad942776d27900dc35470d2508ae8 Mon Sep 17 00:00:00 2001 From: Matt Robinson Date: Wed, 16 Mar 2011 20:37:46 -0700 Subject: 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 --- spec/unit/application/agent_spec.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'spec') diff --git a/spec/unit/application/agent_spec.rb b/spec/unit/application/agent_spec.rb index cc745d1fc..804057868 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 -- cgit