Skip to content

Commit 92df7e4

Browse files
deivid-rodriguezhsbt
authored andcommitted
[rubygems/rubygems] Add missing gem sources --remove test
ruby/rubygems@1f779adc47
1 parent 0775c23 commit 92df7e4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/rubygems/test_gem_commands_sources_command.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,21 @@ def test_execute_remove_no_network
517517
assert_equal "", @ui.error
518518
end
519519

520+
def test_execute_remove_not_present
521+
spec_fetcher
522+
523+
@cmd.handle_options %W[--remove https://does.not.exist]
524+
525+
use_ui @ui do
526+
@cmd.execute
527+
end
528+
529+
expected = "source https://does.not.exist not present in cache\n"
530+
531+
assert_equal expected, @ui.output
532+
assert_equal "", @ui.error
533+
end
534+
520535
def test_execute_update
521536
@cmd.handle_options %w[--update]
522537

0 commit comments

Comments
 (0)