diff options
author | David RodrÃguez <[email protected]> | 2024-10-21 13:43:36 +0200 |
---|---|---|
committer | git <[email protected]> | 2024-10-30 14:22:08 +0000 |
commit | 1e1a37220b18873cd227da2e9b788a62c41707df (patch) | |
tree | d75bdf2ff8bcdab1f38eda4dbf1d23c52638457c /test | |
parent | ec0d0449ddce133b7cdf86a38135af6025146815 (diff) |
[rubygems/rubygems] Fix `gem update --system` leaving old default bundler executables around
https://github.com/rubygems/rubygems/commit/4b81add54c
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/test_gem_commands_setup_command.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_commands_setup_command.rb b/test/rubygems/test_gem_commands_setup_command.rb index 8eedb6c03a..c3622c02cd 100644 --- a/test/rubygems/test_gem_commands_setup_command.rb +++ b/test/rubygems/test_gem_commands_setup_command.rb @@ -224,8 +224,10 @@ class TestGemCommandsSetupCommand < Gem::TestCase # expect to remove normal gem that was same version. because it's promoted default gems. assert_path_not_exist File.join(Gem.dir, "specifications", "bundler-#{bundler_version}.gemspec") + # expect to remove the previous default version + assert_path_not_exist "#{Gem.dir}/gems/bundler-1.15.4" + assert_path_exist "#{Gem.dir}/gems/bundler-#{bundler_version}" - assert_path_exist "#{Gem.dir}/gems/bundler-1.15.4" assert_path_exist "#{Gem.dir}/gems/bundler-audit-1.0.0" end |