diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-02-19 16:44:48 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-02-19 16:44:48 -0800 |
commit | d8fbc2505da27aab787985446630999aa0eeab0f (patch) | |
tree | bf486ae12dbd8ec6168be3ff29e976c895b37e4d /spec/integration | |
parent | 38f8d2ac45a24a88bea9a035c576fadec292e9e6 (diff) | |
download | chef-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')
-rw-r--r-- | spec/integration/knife/data_bag_show_spec.rb | 2 |
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 |