diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2025-08-06 20:01:33 +0200 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-09-03 23:38:37 +0900 |
| commit | 92df7e456a05240977e778d6947372e422129669 (patch) | |
| tree | a827309242f7db990ec9b2533822fe2723971f7f | |
| parent | 0775c239e111e7738a89cb3e44f585c6e1c158da (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.rb | 15 |
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] |
