summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-02-28 12:57:27 -0800
committerTim Smith <tsmith@chef.io>2018-02-28 12:57:27 -0800
commit494de6eea80595bd44d98fac6cd2560d1a5731cc (patch)
treeac03534020ab6176d63fd6d4962fd93a152b8ee4 /spec
parentac19cbfb5fb05189e0edc400bc1acd9a7364b4d8 (diff)
downloadchef-494de6eea80595bd44d98fac6cd2560d1a5731cc.tar.gz
Remove the :uninstall action from chocolatey_package - CHEF-21remove_choco_uninstall
Remove the previously deprecated :uninstall action for chocolatey_package. This is noted in CHEF-21 Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/provider/package/chocolatey_spec.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/spec/unit/provider/package/chocolatey_spec.rb b/spec/unit/provider/package/chocolatey_spec.rb
index afc068041d..ff9dc3ca6b 100644
--- a/spec/unit/provider/package/chocolatey_spec.rb
+++ b/spec/unit/provider/package/chocolatey_spec.rb
@@ -439,19 +439,6 @@ munin-node|1.6.1.20130823
expect(new_resource).to be_updated_by_last_action
end
end
-
- describe "#action_uninstall" do
- it "should call :remove with a deprecation warning" do
- Chef::Config[:treat_deprecation_warnings_as_errors] = false
- expect(Chef::Log).to receive(:deprecation).with(/please use :remove/)
- allow_remote_list(["ConEmu"])
- new_resource.package_name("ConEmu")
- provider.load_current_resource
- expect(provider).to receive(:remove_package)
- provider.run_action(:uninstall)
- expect(new_resource).to be_updated_by_last_action
- end
- end
end
describe "behavior when Chocolatey is not installed" do