summaryrefslogtreecommitdiff
path: root/lib/rubygems/mock_gem_ui.rb
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/mock_gem_ui.rb6
1 files changed, 0 insertions, 6 deletions
@@ -6,27 +6,22 @@ require 'rubygems/user_interaction'
# retrieval during tests.
class Gem::MockGemUi < Gem::StreamUI
-
##
# Raised when you haven't provided enough input to your MockGemUi
class InputEOFError < RuntimeError
-
def initialize(question)
super "Out of input for MockGemUi on #{question.inspect}"
end
-
end
class TermError < RuntimeError
-
attr_reader :exit_code
def initialize(exit_code)
super
@exit_code = exit_code
end
-
end
class SystemExitException < RuntimeError; end
@@ -87,5 +82,4 @@ class Gem::MockGemUi < Gem::StreamUI
raise TermError, status if status != 0
raise SystemExitException
end
-
end