Skip to content

Commit

Permalink
[rubygems/rubygems] Improve uninstaller tests
Browse files Browse the repository at this point in the history
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.

rubygems/rubygems@667537a08f
  • Loading branch information
deivid-rodriguez authored and matzbot committed May 16, 2024
1 parent 847fc9a commit b19693f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/rubygems/test_gem_uninstaller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def test_uninstall_not_ok
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,
Expand Down

0 comments on commit b19693f

Please sign in to comment.