summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAmol Shinde <amol.shinde@msystechnologies.com>2019-09-11 18:06:42 +0530
committerAmol Shinde <amol.shinde@msystechnologies.com>2019-09-11 18:06:42 +0530
commitd58a7eb7965a1c5102b3ee7216dd465064c89524 (patch)
tree6e6876523ae243bbc4c5889ed4304f46468c79ac /spec
parenta8689c07ac5ab970048c75de2d5079fd4ade755a (diff)
downloadchef-d58a7eb7965a1c5102b3ee7216dd465064c89524.tar.gz
Fixed test-case for password prompt.
Signed-off-by: Amol Shinde <amol.shinde@msystechnologies.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/knife/bootstrap_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/knife/bootstrap_spec.rb b/spec/unit/knife/bootstrap_spec.rb
index 0eb08d1dc9..54713086d4 100644
--- a/spec/unit/knife/bootstrap_spec.rb
+++ b/spec/unit/knife/bootstrap_spec.rb
@@ -1846,8 +1846,8 @@ describe Chef::Knife::Bootstrap do
let(:expected_error_password_prompt) do
e = Train::ClientError.new
- message = "Your SSH Agent has no keys added, and you have not specified a password or a key file"
- allow(e).to receive(:message).and_return(message)
+ reason = :no_ssh_password_or_key_available
+ allow(e).to receive(:reason).and_return(reason)
e
end