diff options
author | snehaldwivedi <sdwivedi@msystechnologies.com> | 2021-06-24 00:07:46 -0700 |
---|---|---|
committer | snehaldwivedi <sdwivedi@msystechnologies.com> | 2021-07-15 22:00:55 -0700 |
commit | 587d710e90626081f514a8a03e26b49be3e714c6 (patch) | |
tree | e926a498e198b52faf9abbfa25fdbaace7917075 /knife/spec | |
parent | faabcc82819204cf4095009214f5328d1dcd5177 (diff) | |
download | chef-587d710e90626081f514a8a03e26b49be3e714c6.tar.gz |
Refactord code
Signed-off-by: snehaldwivedi <sdwivedi@msystechnologies.com>
Diffstat (limited to 'knife/spec')
-rw-r--r-- | knife/spec/unit/knife/client_create_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/knife/spec/unit/knife/client_create_spec.rb b/knife/spec/unit/knife/client_create_spec.rb index 32ba53ceee..7d4a8d4947 100644 --- a/knife/spec/unit/knife/client_create_spec.rb +++ b/knife/spec/unit/knife/client_create_spec.rb @@ -173,14 +173,14 @@ describe Chef::Knife::ClientCreate do it "when the directory does not exists" do knife.config[:file] = "example/client1.pem" - expect(knife.ui).to receive(:fatal).with("Dir example dose not exist.") + expect(knife.ui).to receive(:fatal).with("Directory example dose not exist.") expect { knife.run }.to raise_error(SystemExit) end it "when the directory not writable" do knife.config[:file] = file_path File.chmod(777, dir_path) - expect(knife.ui).to receive(:fatal).with("Dir #{dir_path} is not writable. Check permissions.") + expect(knife.ui).to receive(:fatal).with("Directory #{dir_path} is not writable. Check permissions.") expect { knife.run }.to raise_error(SystemExit) end |