mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/rubygems/mockgemui.rb (MockGemUi::TTY),
test/rubygems/test_gem_stream_ui.rb (TestGemStreamUI::IsTty): need #noecho. * test/rubygems/test_gem_gemcutter_utilities.rb: need rubygems/command. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f4053cf555
commit
e2ab44ac40
3 changed files with 8 additions and 0 deletions
|
@ -13,6 +13,9 @@ class MockGemUi < Gem::StreamUI
|
||||||
@tty
|
@tty
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def noecho
|
||||||
|
yield self
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(input = "")
|
def initialize(input = "")
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
require_relative 'gemutilities'
|
require_relative 'gemutilities'
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
|
require 'rubygems/command'
|
||||||
require 'rubygems/gemcutter_utilities'
|
require 'rubygems/gemcutter_utilities'
|
||||||
|
|
||||||
class TestGemGemcutterUtilities < RubyGemTestCase
|
class TestGemGemcutterUtilities < RubyGemTestCase
|
||||||
|
|
|
@ -12,6 +12,10 @@ class TestGemStreamUI < RubyGemTestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
alias_method :isatty, :tty?
|
alias_method :isatty, :tty?
|
||||||
|
|
||||||
|
def noecho
|
||||||
|
yield self
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
|
|
Loading…
Add table
Reference in a new issue