summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodriguez <deivid.rodriguez@riseup.net>2024-05-09 20:17:44 +0200
committergit <svn-admin@ruby-lang.org>2024-05-16 11:55:53 +0000
commitb19693f0ae5077c074ab5a1799cae91e1ef5d7e6 (patch)
treec703e15867482a5f65964fec9cd0e364135aeeb8
parent847fc9af1805d8d2277827eb19c0cb4df8509973 (diff)
[rubygems/rubygems] Improve uninstaller tests
Tests have two copies of b-2 installed, one in default home and another in user home. But only the one in default home was visible because of not reloading paths. The user install test was working by chance. https://github.com/rubygems/rubygems/commit/667537a08f
-rw-r--r--test/rubygems/test_gem_uninstaller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_uninstaller.rb b/test/rubygems/test_gem_uninstaller.rb
index eb25b505e6..2e4fca0112 100644
--- a/test/rubygems/test_gem_uninstaller.rb
+++ b/test/rubygems/test_gem_uninstaller.rb
@@ -429,7 +429,7 @@ create_makefile '#{@spec.name}'
end
def test_uninstall_user_install
- @user_spec = Gem::Specification.find_by_name "b"
+ Gem::Specification.dirs = [Gem.user_dir]
uninstaller = Gem::Uninstaller.new(@user_spec.name,
executables: true,