diff options
| author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-09 21:38:59 +0000 |
|---|---|---|
| committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-09 21:38:59 +0000 |
| commit | e911c45cc9a79f65dc73dab182420a50ecca7db8 (patch) | |
| tree | 10e44506238c7af3d7c9d822111996731726e38d /test/rubygems/test_gem_command_manager.rb | |
| parent | bd35f5bcbd28eef3885ee6bac265f209079754ff (diff) | |
Update to RubyGems 1.3.4 r2223
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_command_manager.rb')
| -rw-r--r-- | test/rubygems/test_gem_command_manager.rb | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/test/rubygems/test_gem_command_manager.rb b/test/rubygems/test_gem_command_manager.rb index bcfe65b35..40ca85735 100644 --- a/test/rubygems/test_gem_command_manager.rb +++ b/test/rubygems/test_gem_command_manager.rb @@ -7,29 +7,16 @@ require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities') require 'rubygems/command_manager' -class InterruptCommand < Gem::Command - - def initialize - super('interrupt', 'Raises an Interrupt Exception', {}) - end - - def execute - raise Interrupt, "Interrupt exception" - end - -end - class TestGemCommandManager < RubyGemTestCase def setup super - @command_manager = Gem::CommandManager.new + @command_manager = Gem::CommandManager.instance end def test_run_interrupt use_ui @ui do - @command_manager.register_command :interrupt assert_raises MockGemUi::TermError do @command_manager.run 'interrupt' end |
