diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-07-24 13:57:59 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-07-24 18:15:54 +0800 |
commit | 99fb637c41c6301286042afbc9edaea71cd7643b (patch) | |
tree | c426b4f0c0c95e6a26c4b5f332fc79aba5edd406 /test/rubygems/test_gem_command_manager.rb | |
parent | 99680f81e832506792cf32d830d09954acd220fc (diff) | |
download | ruby-99fb637c41c6301286042afbc9edaea71cd7643b.tar.gz |
[rubygems/rubygems] Make `@@project_dir` constants per files
https://github.com/rubygems/rubygems/commit/955174658f
Diffstat (limited to 'test/rubygems/test_gem_command_manager.rb')
-rw-r--r-- | test/rubygems/test_gem_command_manager.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rubygems/test_gem_command_manager.rb b/test/rubygems/test_gem_command_manager.rb index 73bfd207c6..3cfa4f09dd 100644 --- a/test/rubygems/test_gem_command_manager.rb +++ b/test/rubygems/test_gem_command_manager.rb @@ -4,7 +4,7 @@ require 'rubygems/command_manager' class TestGemCommandManager < Gem::TestCase - @@project_dir = File.expand_path('../../..', __FILE__).untaint + PROJECT_DIR = File.expand_path('../../..', __FILE__).untaint def setup super @@ -60,7 +60,7 @@ class TestGemCommandManager < Gem::TestCase def test_run_interrupt old_load_path = $:.dup - $: << File.expand_path("test/rubygems", @@project_dir) + $: << File.expand_path("test/rubygems", PROJECT_DIR) Gem.load_env_plugins @command_manager.register_command :interrupt @@ -79,7 +79,7 @@ class TestGemCommandManager < Gem::TestCase def test_run_crash_command old_load_path = $:.dup - $: << File.expand_path("test/rubygems", @@project_dir) + $: << File.expand_path("test/rubygems", PROJECT_DIR) @command_manager.register_command :crash use_ui @ui do |