From b19693f0ae5077c074ab5a1799cae91e1ef5d7e6 Mon Sep 17 00:00:00 2001 From: David Rodriguez Date: Thu, 9 May 2024 20:17:44 +0200 Subject: [PATCH] [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 --- test/rubygems/test_gem_uninstaller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,