diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-04-01 20:02:59 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-04-01 20:02:59 -0700 |
commit | bc42427577b2874dfd1a5cf6bc65dece2c6bdec1 (patch) | |
tree | 91ad4ac274aa5398521cebcea63d81ef9d0f7e3d /spec/unit/knife | |
parent | 40b8dbcc1be0454873b79b04537baa074c221361 (diff) | |
download | chef-bc42427577b2874dfd1a5cf6bc65dece2c6bdec1.tar.gz |
Chef-13: remove deprecated knife subcommand APIs
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/knife')
-rw-r--r-- | spec/unit/knife/core/subcommand_loader_spec.rb | 6 | ||||
-rw-r--r-- | spec/unit/knife/core/ui_spec.rb | 3 |
2 files changed, 1 insertions, 8 deletions
diff --git a/spec/unit/knife/core/subcommand_loader_spec.rb b/spec/unit/knife/core/subcommand_loader_spec.rb index b235102a0b..5db0bb73e5 100644 --- a/spec/unit/knife/core/subcommand_loader_spec.rb +++ b/spec/unit/knife/core/subcommand_loader_spec.rb @@ -43,12 +43,6 @@ describe Chef::Knife::SubcommandLoader do allow(File).to receive(:read).with(File.join(home, ".chef", "plugin_manifest.json")).and_return("{ \"_autogenerated_command_paths\": {}}") expect(Chef::Knife::SubcommandLoader.for_config(config_dir)).to be_a Chef::Knife::SubcommandLoader::HashedCommandLoader end - - it "creates a CustomManifestLoader with then manifest has a key other than _autogenerated_command_paths" do - Chef::Config[:treat_deprecation_warnings_as_errors] = false - allow(File).to receive(:read).with(File.join(home, ".chef", "plugin_manifest.json")).and_return("{ \"plugins\": {}}") - expect(Chef::Knife::SubcommandLoader.for_config(config_dir)).to be_a Chef::Knife::SubcommandLoader::CustomManifestLoader - end end context "when ~/.chef/plugin_manifest.json does not exist" do diff --git a/spec/unit/knife/core/ui_spec.rb b/spec/unit/knife/core/ui_spec.rb index 38614f44d9..0b986258b7 100644 --- a/spec/unit/knife/core/ui_spec.rb +++ b/spec/unit/knife/core/ui_spec.rb @@ -3,7 +3,7 @@ # Author:: Tim Hinderliter (<tim@chef.io>) # Author:: Daniel DeLeo (<dan@chef.io>) # Author:: John Keiser (<jkeiser@chef.io>) -# Copyright:: Copyright 2008-2016, Chef Software Inc. +# Copyright:: Copyright 2008-2017, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -31,7 +31,6 @@ describe Chef::Knife::UI do :field_separator => ".", } @ui = Chef::Knife::UI.new(@out, @err, @in, @config) - Chef::Config[:treat_deprecation_warnings_as_errors] = false end class TestObject < OpenStruct |