summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]