From ed33d34fec6ed1bf2400500f4330a7fb4fb871cb Mon Sep 17 00:00:00 2001 From: danielsdeleo Date: Mon, 4 Nov 2013 11:29:30 -0800 Subject: Add termination info to error messages If no logger is configured, we still want to inform the user that the process was killed (and how). --- spec/mixlib/shellout_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb index fa0ee51..71ecfef 100644 --- a/spec/mixlib/shellout_spec.rb +++ b/spec/mixlib/shellout_spec.rb @@ -869,7 +869,7 @@ describe Mixlib::ShellOut do let(:logger) { Logger.new(log_output) } let(:options) { {:timeout => 1, :logger => logger} } - it "should log messages about killing the child process", :focus do + it "should log messages about killing the child process" do # note: let blocks don't correctly memoize if an exception is raised, # so can't use executed_cmd lambda { shell_cmd.run_command}.should raise_error(Mixlib::ShellOut::CommandTimeout) -- cgit v1.2.1