summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-05-12 11:43:55 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-28 11:53:33 +0900
commit9382bda78bb701bb1df806ff0b25795a4bfc6d0c (patch)
tree94d258bd706ad3d89dcfc2c18b001ef76fe77cfe /test
parent4fb3dd2c42a707a6298971991eb7eef23e415a20 (diff)
downloadruby-9382bda78bb701bb1df806ff0b25795a4bfc6d0c.tar.gz
[rubygems/rubygems] Remove no longer needed `RUBYGEMS_TEST_PATH` env variable
https://github.com/rubygems/rubygems/commit/0efb894c3b
Diffstat (limited to 'test')
-rw-r--r--test/rubygems/test_case.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/rubygems/test_case.rb b/test/rubygems/test_case.rb
index 857c7d7de7..e268df1277 100644
--- a/test/rubygems/test_case.rb
+++ b/test/rubygems/test_case.rb
@@ -106,8 +106,6 @@ class Gem::TestCase < Test::Unit::TestCase
attr_accessor :uri # :nodoc:
- TEST_PATH = ENV.fetch('RUBYGEMS_TEST_PATH', File.expand_path('../../../test/rubygems', __FILE__))
-
def assert_activate(expected, *specs)
specs.each do |spec|
case spec
@@ -1326,8 +1324,8 @@ Also, a list:
end
end
- @@good_rake = "#{rubybin} #{escape_path(TEST_PATH, 'good_rake.rb')}"
- @@bad_rake = "#{rubybin} #{escape_path(TEST_PATH, 'bad_rake.rb')}"
+ @@good_rake = "#{rubybin} #{escape_path(__dir__, 'good_rake.rb')}"
+ @@bad_rake = "#{rubybin} #{escape_path(__dir__, 'bad_rake.rb')}"
##
# Construct a new Gem::Dependency.
@@ -1514,12 +1512,12 @@ Also, a list:
def self.cert_path(cert_name)
if 32 == (Time.at(2**32) rescue 32)
- cert_file = "#{TEST_PATH}/#{cert_name}_cert_32.pem"
+ cert_file = "#{__dir__}/#{cert_name}_cert_32.pem"
return cert_file if File.exist? cert_file
end
- "#{TEST_PATH}/#{cert_name}_cert.pem"
+ "#{__dir__}/#{cert_name}_cert.pem"
end
##
@@ -1537,7 +1535,7 @@ Also, a list:
# Returns the path to the key named +key_name+ from <tt>test/rubygems</tt>
def self.key_path(key_name)
- "#{TEST_PATH}/#{key_name}_key.pem"
+ "#{__dir__}/#{key_name}_key.pem"
end
# :stopdoc: