diff options
Diffstat (limited to 'test/rubygems/test_gem_commands_sources_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_sources_command.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_commands_sources_command.rb b/test/rubygems/test_gem_commands_sources_command.rb index 718a0709dc..b747d08795 100644 --- a/test/rubygems/test_gem_commands_sources_command.rb +++ b/test/rubygems/test_gem_commands_sources_command.rb @@ -90,7 +90,9 @@ class TestGemCommandsSourcesCommand < RubyGemTestCase util_setup_spec_fetcher use_ui @ui do - @cmd.execute + assert_raises MockGemUi::TermError do + @cmd.execute + end end expected = <<-EOF @@ -108,7 +110,9 @@ Error fetching http://beta-gems.example.com: util_setup_spec_fetcher use_ui @ui do - @cmd.execute + assert_raises MockGemUi::TermError do + @cmd.execute + end end assert_equal [@gem_repo], Gem.sources |