[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
This commit is contained in:
David Rodriguez 2024-05-09 20:17:44 +02:00 committed by git
parent 847fc9af18
commit b19693f0ae

View File

@ -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,