aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/test_case.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-24 13:24:18 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-07-24 18:15:47 +0800
commit99680f81e832506792cf32d830d09954acd220fc (patch)
tree3b86d0f0d30c0176e28dcda2affcf2bbe29c2c07 /lib/rubygems/test_case.rb
parent3a227b99e78927cdd53e4c1b6b1e5f1af004ca41 (diff)
downloadruby-99680f81e832506792cf32d830d09954acd220fc.tar.gz
[rubygems/rubygems] Resolve `@@project_dir` from test file paths
`Dir.pwd` may differ from the source path. Test directories and files should be resolved from test file paths. https://github.com/rubygems/rubygems/commit/e18e7c81b4
Diffstat (limited to 'lib/rubygems/test_case.rb')
-rw-r--r--lib/rubygems/test_case.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb
index b466e7a4e0..a8cc5d0060 100644
--- a/lib/rubygems/test_case.rb
+++ b/lib/rubygems/test_case.rb
@@ -232,8 +232,6 @@ class Gem::TestCase < (defined?(Minitest::Test) ? Minitest::Test : MiniTest::Uni
undef_method :default_test if instance_methods.include? 'default_test' or
instance_methods.include? :default_test
- @@project_dir = Dir.pwd.untaint unless defined?(@@project_dir)
-
##
# #setup prepares a sandboxed location to install gems. All installs are
# directed to a temporary directory. All install plugins are removed.