summaryrefslogtreecommitdiff
path: root/test/rubygems/rubygems_plugin.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/rubygems_plugin.rb')
-rw-r--r--test/rubygems/rubygems_plugin.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/rubygems/rubygems_plugin.rb b/test/rubygems/rubygems_plugin.rb
index 2dc7836904..7fac2ebec6 100644
--- a/test/rubygems/rubygems_plugin.rb
+++ b/test/rubygems/rubygems_plugin.rb
@@ -11,6 +11,7 @@ module Gem::Commands
end
class Gem::Commands::InterruptCommand < Gem::Command
+
def initialize
super('interrupt', 'Raises an Interrupt Exception', {})
end
@@ -18,6 +19,7 @@ class Gem::Commands::InterruptCommand < Gem::Command
def execute
raise Interrupt, "Interrupt exception"
end
+
end
Gem::CommandManager.instance.register_command :interrupt