summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsnehaldwivedi <sdwivedi@msystechnologies.com>2021-07-09 01:03:10 -0700
committersnehaldwivedi <sdwivedi@msystechnologies.com>2021-07-15 22:00:55 -0700
commit4a71edfb9519983177a2625fa2261627802729df (patch)
tree458771528f6e902c4e2c140faf54c7e3b2b6d611
parent476fc8300bbc1886809524b2d1d3b00cc2ad845c (diff)
downloadchef-4a71edfb9519983177a2625fa2261627802729df.tar.gz
To fixed typo
Signed-off-by: snehaldwivedi <sdwivedi@msystechnologies.com>
-rw-r--r--knife/lib/chef/knife/client_create.rb2
-rw-r--r--knife/spec/integration/cookbook_download_spec.rb2
-rw-r--r--knife/spec/unit/knife/client_create_spec.rb4
3 files changed, 4 insertions, 4 deletions
diff --git a/knife/lib/chef/knife/client_create.rb b/knife/lib/chef/knife/client_create.rb
index da2481f674..dd2cbd64ed 100644
--- a/knife/lib/chef/knife/client_create.rb
+++ b/knife/lib/chef/knife/client_create.rb
@@ -113,7 +113,7 @@ class Chef
exit 1
end
else
- ui.fatal "#{type} #{file} dose not exist."
+ ui.fatal "#{type} #{file} does not exist."
exit 1
end
end
diff --git a/knife/spec/integration/cookbook_download_spec.rb b/knife/spec/integration/cookbook_download_spec.rb
index 18b50ef824..589417126c 100644
--- a/knife/spec/integration/cookbook_download_spec.rb
+++ b/knife/spec/integration/cookbook_download_spec.rb
@@ -66,7 +66,7 @@ describe "knife cookbook download", :workstation do
Downloading root_files
Cookbook downloaded to #{tmpdir}/x-1.0.1
EOM
- )
+ )
end
end
end
diff --git a/knife/spec/unit/knife/client_create_spec.rb b/knife/spec/unit/knife/client_create_spec.rb
index 7d4a8d4947..ada1d9d7bc 100644
--- a/knife/spec/unit/knife/client_create_spec.rb
+++ b/knife/spec/unit/knife/client_create_spec.rb
@@ -173,7 +173,7 @@ 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("Directory example dose not exist.")
+ expect(knife.ui).to receive(:fatal).with("Directory example does not exist.")
expect { knife.run }.to raise_error(SystemExit)
end
@@ -188,7 +188,7 @@ describe Chef::Knife::ClientCreate do
path = "#{dir_path}/client1.pem"
knife.config[:file] = path
File.chmod(0755, dir_path)
- expect(knife.ui).to receive(:fatal).with("File #{path} dose not exist.")
+ expect(knife.ui).to receive(:fatal).with("File #{path} does not exist.")
expect { knife.run }.to raise_error(SystemExit)
end