[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:
parent
847fc9af18
commit
b19693f0ae
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user