summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_uninstaller.rb
diff options
context:
space:
mode:
authorSutou Kouhei <kou@clear-code.com>2022-09-13 09:57:42 +0900
committergit <svn-admin@ruby-lang.org>2023-05-25 21:51:15 +0000
commitd83f32c34b1d0e4dd49dd1f0af1b665c022b2872 (patch)
tree3a50d7b0c5d292251513e6dd0df157bed39d0562 /test/rubygems/test_gem_uninstaller.rb
parente87f6c899e55f4d9452ce4d75cf2a725ae736aff (diff)
[rubygems/rubygems] Load plugin immediately
We can install RubyGems plugin by "gem install XXX". The installed plugin is used from the NEXT "gem ...". For example, "gem install gem-src kaminari" doesn't use gem-src plugin for kaminari. "gem install gem-src && gem install kaminari" uses gem-src plugin for kaminari. How about loading a plugin immediately when the plugin is installed? If this proposal is implemented, "gem install gem-src kaminari" works like "gem install gem-src && gem install kaminari". https://github.com/rubygems/rubygems/commit/4917d96f4c
Diffstat (limited to 'test/rubygems/test_gem_uninstaller.rb')
-rw-r--r--test/rubygems/test_gem_uninstaller.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rubygems/test_gem_uninstaller.rb b/test/rubygems/test_gem_uninstaller.rb
index dd296b0807..dfa01768bc 100644
--- a/test/rubygems/test_gem_uninstaller.rb
+++ b/test/rubygems/test_gem_uninstaller.rb
@@ -173,7 +173,7 @@ class TestGemUninstaller < Gem::InstallerTestCase
def test_remove_plugins
write_file File.join(@tempdir, "lib", "rubygems_plugin.rb") do |io|
- io.write "puts __FILE__"
+ io.write "# do nothing"
end
@spec.files += %w[lib/rubygems_plugin.rb]
@@ -190,7 +190,7 @@ class TestGemUninstaller < Gem::InstallerTestCase
def test_remove_plugins_with_install_dir
write_file File.join(@tempdir, "lib", "rubygems_plugin.rb") do |io|
- io.write "puts __FILE__"
+ io.write "# do nothing"
end
@spec.files += %w[lib/rubygems_plugin.rb]
@@ -208,7 +208,7 @@ class TestGemUninstaller < Gem::InstallerTestCase
def test_regenerate_plugins_for
write_file File.join(@tempdir, "lib", "rubygems_plugin.rb") do |io|
- io.write "puts __FILE__"
+ io.write "# do nothing"
end
@spec.files += %w[lib/rubygems_plugin.rb]
@@ -635,7 +635,7 @@ create_makefile '#{@spec.name}'
def test_uninstall_keeps_plugins_up_to_date
write_file File.join(@tempdir, "lib", "rubygems_plugin.rb") do |io|
- io.write "puts __FILE__"
+ io.write "# do nothing"
end
plugin_path = File.join Gem.plugindir, "a_plugin.rb"