mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Remove minitest compatibility code
https://github.com/rubygems/rubygems/commit/24213b97d8
This commit is contained in:
parent
f4022f943d
commit
b8ef5ed8bd
Notes:
git
2020-05-08 07:39:33 +09:00
2 changed files with 2 additions and 6 deletions
|
@ -98,7 +98,7 @@ end
|
|||
# and uninstall gems, fetch remote gems through a stub fetcher and be assured
|
||||
# your normal set of gems is not affected.
|
||||
|
||||
class Gem::TestCase < (defined?(Minitest::Test) ? Minitest::Test : MiniTest::Unit::TestCase)
|
||||
class Gem::TestCase < Minitest::Test
|
||||
|
||||
extend Gem::Deprecate
|
||||
|
||||
|
|
|
@ -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
|
||||
http = Net::HTTP.new(host, 443)
|
||||
http.use_ssl = true
|
||||
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
||||
|
|
Loading…
Reference in a new issue