diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2017-04-04 12:38:06 -0700 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2017-04-04 12:38:06 -0700 |
commit | 12d84a5f570306ef06c28885680c6197026b61b0 (patch) | |
tree | 1c7ff2c0417f4cbafa688f213f10a6950a56ff15 | |
parent | bf89c75e3f7dd8d5123c61e73758ae9cc78056bc (diff) | |
download | chef-12d84a5f570306ef06c28885680c6197026b61b0.tar.gz |
Replace a few dangling references to `knife cookbook site vendor` that don’t really matter.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
-rw-r--r-- | spec/unit/knife/core/cookbook_scm_repo_spec.rb | 2 | ||||
-rw-r--r-- | spec/unit/knife_spec.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/knife/core/cookbook_scm_repo_spec.rb b/spec/unit/knife/core/cookbook_scm_repo_spec.rb index 137bdddafb..3c16f93533 100644 --- a/spec/unit/knife/core/cookbook_scm_repo_spec.rb +++ b/spec/unit/knife/core/cookbook_scm_repo_spec.rb @@ -83,7 +83,7 @@ BRANCHES it "exits when the git repo is dirty" do @dirty_status = Mixlib::ShellOut.new @dirty_status.stdout.replace(<<-DIRTY) - M chef/lib/chef/knife/cookbook_site_vendor.rb + M chef/lib/chef/knife/cookbook_site_install.rb DIRTY expect(@cookbook_repo).to receive(:shell_out!).with("git status --porcelain", :cwd => @repo_path).and_return(@dirty_status) expect { @cookbook_repo.sanity_check }.to raise_error(SystemExit) diff --git a/spec/unit/knife_spec.rb b/spec/unit/knife_spec.rb index 9569526b2a..00c629b680 100644 --- a/spec/unit/knife_spec.rb +++ b/spec/unit/knife_spec.rb @@ -144,9 +144,9 @@ describe Chef::Knife do end it "finds a subcommand class based on ARGV" do - Chef::Knife.subcommands["cookbook_site_vendor"] = :CookbookSiteVendor + Chef::Knife.subcommands["cookbook_site_install"] = :CookbookSiteInstall Chef::Knife.subcommands["cookbook"] = :Cookbook - expect(Chef::Knife.subcommand_class_from(%w{cookbook site vendor --help foo bar baz})).to eq(:CookbookSiteVendor) + expect(Chef::Knife.subcommand_class_from(%w{cookbook site install --help foo bar baz})).to eq(:CookbookSiteInstall) end it "special case sets the subcommand_loader to GemGlobLoader when running rehash" do |