diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-04-13 14:49:33 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-04-13 08:38:45 +0000 |
commit | 1f0974e654bf3c8a7dd321ae898174d942975686 (patch) | |
tree | db698b0ab05251291767d7574d8e574f244a15c4 /test/rubygems/test_gem_installer.rb | |
parent | 80fa9b04042bd28f9c02364547de4e2f6f408bdd (diff) |
[rubygems/rubygems] Downcase camel like cases of instance variable
https://github.com/rubygems/rubygems/commit/4eaac27107
Diffstat (limited to 'test/rubygems/test_gem_installer.rb')
-rw-r--r-- | test/rubygems/test_gem_installer.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/rubygems/test_gem_installer.rb b/test/rubygems/test_gem_installer.rb index c4f107fd52..30113c629b 100644 --- a/test/rubygems/test_gem_installer.rb +++ b/test/rubygems/test_gem_installer.rb @@ -204,7 +204,7 @@ gem 'other', version bin_dir = bin_dir.downcase end - orig_PATH = ENV["PATH"] + orig_path = ENV["PATH"] ENV["PATH"] = [ENV["PATH"], bin_dir].join(File::PATH_SEPARATOR) use_ui @ui do @@ -215,7 +215,7 @@ gem 'other', version return unless Gem.win_platform? - ENV["PATH"] = [orig_PATH, bin_dir.tr(File::SEPARATOR, File::ALT_SEPARATOR)].join(File::PATH_SEPARATOR) + ENV["PATH"] = [orig_path, bin_dir.tr(File::SEPARATOR, File::ALT_SEPARATOR)].join(File::PATH_SEPARATOR) use_ui @ui do installer.check_that_user_bin_dir_is_in_path @@ -223,13 +223,13 @@ gem 'other', version assert_empty @ui.error ensure - ENV["PATH"] = orig_PATH + ENV["PATH"] = orig_path end def test_check_that_user_bin_dir_is_in_path_tilde pend "Tilde is PATH is not supported under MS Windows" if Gem.win_platform? - orig_PATH = ENV["PATH"] + orig_path = ENV["PATH"] ENV["PATH"] = [ENV["PATH"], "~/bin"].join(File::PATH_SEPARATOR) installer = setup_base_installer @@ -241,7 +241,7 @@ gem 'other', version assert_empty @ui.error ensure - ENV["PATH"] = orig_PATH unless Gem.win_platform? + ENV["PATH"] = orig_path unless Gem.win_platform? end def test_check_that_user_bin_dir_is_in_path_not_in_path @@ -2462,11 +2462,11 @@ gem 'other', version end def load_relative(value) - orig_LIBRUBY_RELATIVE = RbConfig::CONFIG["LIBRUBY_RELATIVE"] + orig_libruby_relative = RbConfig::CONFIG["LIBRUBY_RELATIVE"] RbConfig::CONFIG["LIBRUBY_RELATIVE"] = value yield ensure - RbConfig::CONFIG["LIBRUBY_RELATIVE"] = orig_LIBRUBY_RELATIVE + RbConfig::CONFIG["LIBRUBY_RELATIVE"] = orig_libruby_relative end end |