diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-12-07 11:15:23 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-01-03 10:53:48 -0800 |
commit | 10db9b3a50eae9c4c966f39f5beca8f5c17d441e (patch) | |
tree | 596bb3da0bcd1e2fe9a24e3a376fd6223cb6156f /spec/unit/mixin | |
parent | 94ba9c022e57feb2949e22656d811a843b3410f1 (diff) | |
download | chef-10db9b3a50eae9c4c966f39f5beca8f5c17d441e.tar.gz |
change HTTPServerException to HTTPClientException for ruby 2.6
includes backcompat for 2.5
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/mixin')
-rw-r--r-- | spec/unit/mixin/api_version_request_handling_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/mixin/api_version_request_handling_spec.rb b/spec/unit/mixin/api_version_request_handling_spec.rb index cabc85439c..f3b3fa14ab 100644 --- a/spec/unit/mixin/api_version_request_handling_spec.rb +++ b/spec/unit/mixin/api_version_request_handling_spec.rb @@ -27,7 +27,7 @@ describe Chef::Mixin::ApiVersionRequestHandling do context "when the response code is not 406" do let(:response) { OpenStruct.new(code: "405") } - let(:exception) { Net::HTTPServerException.new("405 Something Else", response) } + let(:exception) { Net::HTTPClientException.new("405 Something Else", response) } it "returns nil" do expect(object.server_client_api_version_intersection(exception, default_supported_client_versions)) @@ -38,7 +38,7 @@ describe Chef::Mixin::ApiVersionRequestHandling do context "when the response code is 406" do let(:response) { OpenStruct.new(code: "406") } - let(:exception) { Net::HTTPServerException.new("406 Not Acceptable", response) } + let(:exception) { Net::HTTPClientException.new("406 Not Acceptable", response) } context "when x-ops-server-api-version header does not exist" do it "returns nil" do |