diff options
author | Vivek Singh <vivek.singh@msystechnologies.com> | 2020-09-17 10:04:50 +0530 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2021-02-02 11:57:59 -0800 |
commit | 547ee37d530aa1c3b2c2bc0f9122261cd16e65f2 (patch) | |
tree | 11aca1cac052a3552798561737c98f4cacb3af75 /spec | |
parent | 3bacc50081b3144d1487498aa86016bd921adf96 (diff) | |
download | chef-547ee37d530aa1c3b2c2bc0f9122261cd16e65f2.tar.gz |
Passed block and limits resursive calls
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/knife/bootstrap_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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) |