From 92df7e456a05240977e778d6947372e422129669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 6 Aug 2025 20:01:33 +0200 Subject: [rubygems/rubygems] Add missing `gem sources --remove` test https://github.com/rubygems/rubygems/commit/1f779adc47 --- test/rubygems/test_gem_commands_sources_command.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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] -- cgit v1.2.3