From 547ee37d530aa1c3b2c2bc0f9122261cd16e65f2 Mon Sep 17 00:00:00 2001 From: Vivek Singh Date: Thu, 17 Sep 2020 10:04:50 +0530 Subject: Passed block and limits resursive calls Signed-off-by: Vivek Singh --- spec/unit/knife/bootstrap_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/unit') diff --git a/spec/unit/knife/bootstrap_spec.rb b/spec/unit/knife/bootstrap_spec.rb index 36d6d3efa0..ede8d029c6 100644 --- a/spec/unit/knife/bootstrap_spec.rb +++ b/spec/unit/knife/bootstrap_spec.rb @@ -1740,7 +1740,7 @@ describe Chef::Knife::Bootstrap do expect(connection) .to receive(:run_command) .with("sh /path.sh") - .and_yield("output here") + .and_yield("output here", nil) .and_return result_mock expect(knife.ui).to receive(:msg).with(/testhost/) @@ -1773,7 +1773,7 @@ describe Chef::Knife::Bootstrap do expect(connection) .to receive(:run_command) .with("su - USER -c 'sh /path.sh'") - .and_yield("output here") + .and_yield("output here", nil) .and_return result_mock expect(knife.ui).to receive(:ask).and_return("password").twice expect(connection).to receive(:run_command).with("su - USER -c 'sh /path.sh'").and_return(result_mock, result_mock2) -- cgit v1.2.1