summaryrefslogtreecommitdiff
path: root/spec/ruby/library/net/http/httpresponse/exception_type_spec.rb
diff options
context:
space:
mode:
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.rb7
1 files changed, 1 insertions, 6 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 c0812cd322..0c9c11291f 100644
--- a/spec/ruby/library/net/http/httpresponse/exception_type_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/exception_type_spec.rb
@@ -7,12 +7,7 @@ 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
- 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::HTTPClientError.exception_type.should == Net::HTTPClientException
Net::HTTPServerError.exception_type.should == Net::HTTPFatalError
end
end