diff options
author | snehaldwivedi <sdwivedi@msystechnologies.com> | 2020-08-06 22:43:38 -0700 |
---|---|---|
committer | snehaldwivedi <sdwivedi@msystechnologies.com> | 2021-02-16 02:45:13 -0800 |
commit | 7ead343d039cb86ef9cd59443e16ef6bc5411aeb (patch) | |
tree | fffe8fd807272c95bbb71696149bdc049b2b2c0a /spec | |
parent | 37ac3c34cf04630026d09c4f084ddf2394141165 (diff) | |
download | chef-7ead343d039cb86ef9cd59443e16ef6bc5411aeb.tar.gz |
Fixed changes for prompt password
Signed-off-by: snehaldwivedi <sdwivedi@msystechnologies.com>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/knife/user_create_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/knife/user_create_spec.rb b/spec/unit/knife/user_create_spec.rb index 3a97d12817..3d03b40d03 100644 --- a/spec/unit/knife/user_create_spec.rb +++ b/spec/unit/knife/user_create_spec.rb @@ -88,6 +88,7 @@ describe Chef::Knife::UserCreate do it "creates an user" do expect(@user.chef_root_rest_v0).to receive(:post).and_return(@user) + expect(knife.ui).to receive(:ask).with("Please enter the user's password: ", echo: false).and_return("password") knife.run end end |