diff options
Diffstat (limited to 'spec/ruby/library/net/http/httpresponse/exception_type_spec.rb')
-rw-r--r-- | spec/ruby/library/net/http/httpresponse/exception_type_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/ruby/library/net/http/httpresponse/exception_type_spec.rb b/spec/ruby/library/net/http/httpresponse/exception_type_spec.rb index 74839463b7..c0812cd322 100644 --- a/spec/ruby/library/net/http/httpresponse/exception_type_spec.rb +++ b/spec/ruby/library/net/http/httpresponse/exception_type_spec.rb @@ -7,7 +7,12 @@ describe "Net::HTTPResponse.exception_type" do Net::HTTPInformation.exception_type.should == Net::HTTPError Net::HTTPSuccess.exception_type.should == Net::HTTPError Net::HTTPRedirection.exception_type.should == Net::HTTPRetriableError - Net::HTTPClientError.exception_type.should == Net::HTTPServerException + ruby_version_is ""..."2.6" do + Net::HTTPClientError.exception_type.should == Net::HTTPServerException + end + ruby_version_is "2.6" do + Net::HTTPClientError.exception_type.should == Net::HTTPClientException + end Net::HTTPServerError.exception_type.should == Net::HTTPFatalError end end |