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/provider/remote_file | |
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/provider/remote_file')
-rw-r--r-- | spec/unit/provider/remote_file/content_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/provider/remote_file/content_spec.rb b/spec/unit/provider/remote_file/content_spec.rb index 1afc95fa48..e105f84bd3 100644 --- a/spec/unit/provider/remote_file/content_spec.rb +++ b/spec/unit/provider/remote_file/content_spec.rb @@ -161,7 +161,7 @@ describe Chef::Provider::RemoteFile::Content do # https://github.com/chef/chef/pull/1358#issuecomment-40853299 def create_exception(exception_class) - if [ Net::HTTPServerException, Net::HTTPFatalError ].include? exception_class + if [ Net::HTTPClientException, Net::HTTPFatalError ].include? exception_class exception_class.new("message", { "something" => 1 }) else exception_class.new @@ -177,7 +177,7 @@ describe Chef::Provider::RemoteFile::Content do Errno::ENOENT, Errno::EACCES, Timeout::Error, - Net::HTTPServerException, + Net::HTTPClientException, Net::HTTPFatalError, Net::FTPError, Errno::ETIMEDOUT, |