diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-07-24 13:24:18 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-07-24 18:15:47 +0800 |
commit | 99680f81e832506792cf32d830d09954acd220fc (patch) | |
tree | 3b86d0f0d30c0176e28dcda2affcf2bbe29c2c07 /lib/rubygems | |
parent | 3a227b99e78927cdd53e4c1b6b1e5f1af004ca41 (diff) | |
download | ruby-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')
-rw-r--r-- | lib/rubygems/test_case.rb | 2 |
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. |