aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_commands_update_command.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-24 07:39:24 +0100
committerGitHub <noreply@github.com>2020-03-24 15:39:24 +0900
commit96064e6f1ce100a37680dc8f9509f06b3350e9c8 (patch)
tree798b59f015cb82ee3cd0427f80584032175829ba /test/rubygems/test_gem_commands_update_command.rb
parent930b012ad96bfb0bd12446b89407120744ef92eb (diff)
downloadruby-96064e6f1ce100a37680dc8f9509f06b3350e9c8.tar.gz
Sync rubygems with current master (#2889)
Diffstat (limited to 'test/rubygems/test_gem_commands_update_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_update_command.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/rubygems/test_gem_commands_update_command.rb b/test/rubygems/test_gem_commands_update_command.rb
index 340c658b9d..efaa621634 100644
--- a/test/rubygems/test_gem_commands_update_command.rb
+++ b/test/rubygems/test_gem_commands_update_command.rb
@@ -169,12 +169,12 @@ class TestGemCommandsUpdateCommand < Gem::TestCase
@cmd.options[:args] = []
@cmd.options[:system] = "3.1"
- FileUtils.mkdir_p Gem.plugins_dir
- write_file File.join(Gem.plugins_dir, 'a_plugin.rb')
+ FileUtils.mkdir_p Gem.plugindir
+ write_file File.join(Gem.plugindir, 'a_plugin.rb')
@cmd.execute
- refute_path_exists Gem.plugins_dir, "Plugins folder not removed when updating rubygems to pre-3.2"
+ refute_path_exists Gem.plugindir, "Plugins folder not removed when updating rubygems to pre-3.2"
end
def test_execute_system_specific_newer_than_or_equal_to_3_2_leaves_plugins_dir_alone
@@ -187,13 +187,13 @@ class TestGemCommandsUpdateCommand < Gem::TestCase
@cmd.options[:args] = []
@cmd.options[:system] = "3.2"
- FileUtils.mkdir_p Gem.plugins_dir
- plugin_file = File.join(Gem.plugins_dir, 'a_plugin.rb')
+ FileUtils.mkdir_p Gem.plugindir
+ plugin_file = File.join(Gem.plugindir, 'a_plugin.rb')
write_file plugin_file
@cmd.execute
- assert_path_exists Gem.plugins_dir, "Plugin folder removed when updating rubygems to post-3.2"
+ assert_path_exists Gem.plugindir, "Plugin folder removed when updating rubygems to post-3.2"
assert_path_exists plugin_file, "Plugin removed when updating rubygems to post-3.2"
end