summaryrefslogtreecommitdiff
path: root/spec/integration/knife
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-02-19 16:44:48 -0800
committerTim Smith <tsmith84@gmail.com>2020-02-19 16:44:48 -0800
commitd8fbc2505da27aab787985446630999aa0eeab0f (patch)
treebf486ae12dbd8ec6168be3ff29e976c895b37e4d /spec/integration/knife
parent38f8d2ac45a24a88bea9a035c576fadec292e9e6 (diff)
downloadchef-d8fbc2505da27aab787985446630999aa0eeab0f.tar.gz
Update HTTPServerException to be HTTPClientExceptionnet_http_deprecations
Avoid deprecation warnings. Also remove the monkeypatch that provided HTTPClientException on older Ruby releases since we're 2.6+ now and we don't need this. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/integration/knife')
-rw-r--r--spec/integration/knife/data_bag_show_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/integration/knife/data_bag_show_spec.rb b/spec/integration/knife/data_bag_show_spec.rb
index 42553dc478..35f12f9619 100644
--- a/spec/integration/knife/data_bag_show_spec.rb
+++ b/spec/integration/knife/data_bag_show_spec.rb
@@ -26,7 +26,7 @@ describe "knife data bag show", :workstation do
when_the_chef_server "is empty" do
it "raises error if try to retrieve it" do
- expect { knife("data bag show bag") }.to raise_error(Net::HTTPServerException)
+ expect { knife("data bag show bag") }.to raise_error(Net::HTTPClientException)
end
end