summaryrefslogtreecommitdiff
path: root/test/rubygems
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-08-02 12:06:43 +0900
committernagachika <nagachika@ruby-lang.org>2021-08-19 15:46:40 +0900
commit679185d6c87e0f2e4f6a5da5ce50d02c80ab31b1 (patch)
tree293fa8c1f863aeb2f711310dc4941528fa829401 /test/rubygems
parentf1039afa4179f9d3a42f0d89b499e3c955b495d9 (diff)
Merge RubyGems 3.2.24 and Bundler 2.2.24
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/test_gem_uninstaller.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_uninstaller.rb b/test/rubygems/test_gem_uninstaller.rb
index 47d49f6cc6..0386099a8f 100644
--- a/test/rubygems/test_gem_uninstaller.rb
+++ b/test/rubygems/test_gem_uninstaller.rb
@@ -295,8 +295,15 @@ class TestGemUninstaller < Gem::InstallerTestCase
uninstaller = Gem::Uninstaller.new spec.name, :executables => true
- uninstaller.uninstall
-
+ ui = Gem::MockGemUi.new "1\ny\n"
+ use_ui ui do
+ uninstaller.uninstall
+ end
+ expected = "Successfully uninstalled default-2\n" \
+ "There was both a regular copy and a default copy of default-2. The " \
+ "regular copy was successfully uninstalled, but the default copy " \
+ "was left around because default gems can't be removed.\n"
+ assert_equal expected, ui.output
assert_path_not_exist spec.gem_dir
end