aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_bundled_ca.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_bundled_ca.rb')
-rw-r--r--test/rubygems/test_bundled_ca.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/rubygems/test_bundled_ca.rb b/test/rubygems/test_bundled_ca.rb
index ad66f3e616..e6761dd197 100644
--- a/test/rubygems/test_bundled_ca.rb
+++ b/test/rubygems/test_bundled_ca.rb
@@ -27,11 +27,7 @@ if ENV["CI"] || ENV["TEST_SSL"]
end
def assert_https(host)
- if self.respond_to? :_assertions # minitest <= 4
- self._assertions += 1
- else # minitest >= 5
- self.assertions += 1
- end
+ self.assertions += 1
http = Net::HTTP.new(host, 443)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER