summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-07-13 10:35:46 -0700
committerGitHub <noreply@github.com>2018-07-13 10:35:46 -0700
commit3733739bc65b1fd5cda0011e7c4c588808e4a917 (patch)
tree9e59bde7fc997bc733dbc0686180325847d7910b /spec
parente57c184039c5735f499712838607ce3cf8c76f7d (diff)
parent92204511b3cf1aefb7d8c9cb176366d78de4f191 (diff)
downloadchef-3733739bc65b1fd5cda0011e7c4c588808e4a917.tar.gz
Merge pull request #7458 from chef/better_rehash_error
Provide a better error when knife plugins are missing from the cache
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/knife/core/hashed_command_loader_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/knife/core/hashed_command_loader_spec.rb b/spec/unit/knife/core/hashed_command_loader_spec.rb
index 53bd81f4f7..e866f13a9c 100644
--- a/spec/unit/knife/core/hashed_command_loader_spec.rb
+++ b/spec/unit/knife/core/hashed_command_loader_spec.rb
@@ -65,7 +65,7 @@ describe Chef::Knife::SubcommandLoader::HashedCommandLoader do
end
it "lists all commands by category when no argument is given" do
- expect(Chef::Log).to receive(:error).with(/There are files specified in the manifest that are missing/)
+ expect(Chef::Log).to receive(:error).with(/There are plugin files specified in the knife cache that cannot be found/)
expect(Chef::Log).to receive(:error).with("Missing files:\n\t/file/for/plugin/b")
expect(loader.list_commands).to eq({})
end