summaryrefslogtreecommitdiff
path: root/spec/unit/knife/supermarket_share_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-12-07 11:15:23 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2019-01-03 10:53:48 -0800
commit10db9b3a50eae9c4c966f39f5beca8f5c17d441e (patch)
tree596bb3da0bcd1e2fe9a24e3a376fd6223cb6156f /spec/unit/knife/supermarket_share_spec.rb
parent94ba9c022e57feb2949e22656d811a843b3410f1 (diff)
downloadchef-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/knife/supermarket_share_spec.rb')
-rw-r--r--spec/unit/knife/supermarket_share_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/knife/supermarket_share_spec.rb b/spec/unit/knife/supermarket_share_spec.rb
index dde58775f4..6601cdcd31 100644
--- a/spec/unit/knife/supermarket_share_spec.rb
+++ b/spec/unit/knife/supermarket_share_spec.rb
@@ -85,7 +85,7 @@ describe Chef::Knife::SupermarketShare do
it "should use a default category when given only 1 argument and cannot determine category" do
@knife.name_args = ["cookbook_name"]
- expect(@noauth_rest).to receive(:get).with("https://supermarket.chef.io/api/v1/cookbooks/cookbook_name") { raise Net::HTTPServerException.new("404 Not Found", OpenStruct.new(code: "404")) }
+ expect(@noauth_rest).to receive(:get).with("https://supermarket.chef.io/api/v1/cookbooks/cookbook_name") { raise Net::HTTPClientException.new("404 Not Found", OpenStruct.new(code: "404")) }
expect(@knife).to receive(:do_upload)
expect { @knife.run }.to_not raise_error
end