summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2025-08-06 20:01:33 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-09-03 23:38:37 +0900
commit92df7e456a05240977e778d6947372e422129669 (patch)
treea827309242f7db990ec9b2533822fe2723971f7f
parent0775c239e111e7738a89cb3e44f585c6e1c158da (diff)
[rubygems/rubygems] Add missing `gem sources --remove` test
https://github.com/rubygems/rubygems/commit/1f779adc47
-rw-r--r--test/rubygems/test_gem_commands_sources_command.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_commands_sources_command.rb b/test/rubygems/test_gem_commands_sources_command.rb
index ac43a27449..5f15d038c9 100644
--- a/test/rubygems/test_gem_commands_sources_command.rb
+++ b/test/rubygems/test_gem_commands_sources_command.rb
@@ -517,6 +517,21 @@ beta-gems.example.com is not a URI
assert_equal "", @ui.error
end
+ def test_execute_remove_not_present
+ spec_fetcher
+
+ @cmd.handle_options %W[--remove https://does.not.exist]
+
+ use_ui @ui do
+ @cmd.execute
+ end
+
+ expected = "source https://does.not.exist not present in cache\n"
+
+ assert_equal expected, @ui.output
+ assert_equal "", @ui.error
+ end
+
def test_execute_update
@cmd.handle_options %w[--update]