summaryrefslogtreecommitdiff
path: root/knife/spec
diff options
context:
space:
mode:
authorsnehaldwivedi <sdwivedi@msystechnologies.com>2021-06-24 00:07:46 -0700
committersnehaldwivedi <sdwivedi@msystechnologies.com>2021-07-15 22:00:55 -0700
commit587d710e90626081f514a8a03e26b49be3e714c6 (patch)
treee926a498e198b52faf9abbfa25fdbaace7917075 /knife/spec
parentfaabcc82819204cf4095009214f5328d1dcd5177 (diff)
downloadchef-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.rb4
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