mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Import rubygems 1.6.2 (release candidate @ 2026fbb5)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
08c07a215d
commit
6e5f49770c
24 changed files with 196 additions and 64 deletions
|
@ -37,10 +37,12 @@ class TestGemStreamUI < Gem::TestCase
|
|||
@in.extend IsTty
|
||||
@out.extend IsTty
|
||||
|
||||
@sui = Gem::StreamUI.new @in, @out, @err
|
||||
@sui = Gem::StreamUI.new @in, @out, @err, true
|
||||
end
|
||||
|
||||
def test_ask
|
||||
skip 'TTY detection broken on windows' if Gem.win_platform?
|
||||
|
||||
timeout(1) do
|
||||
expected_answer = "Arthur, King of the Britons"
|
||||
@in.string = "#{expected_answer}\n"
|
||||
|
@ -50,6 +52,8 @@ class TestGemStreamUI < Gem::TestCase
|
|||
end
|
||||
|
||||
def test_ask_no_tty
|
||||
skip 'TTY handling is broken on windows' if Gem.win_platform?
|
||||
|
||||
@in.tty = false
|
||||
|
||||
timeout(0.1) do
|
||||
|
@ -70,6 +74,8 @@ class TestGemStreamUI < Gem::TestCase
|
|||
end
|
||||
|
||||
def test_ask_for_password_no_tty
|
||||
skip 'TTY handling is broken on windows' if Gem.win_platform?
|
||||
|
||||
@in.tty = false
|
||||
|
||||
timeout(0.1) do
|
||||
|
@ -79,6 +85,8 @@ class TestGemStreamUI < Gem::TestCase
|
|||
end
|
||||
|
||||
def test_ask_yes_no_no_tty_with_default
|
||||
skip 'TTY handling is broken on windows' if Gem.win_platform?
|
||||
|
||||
@in.tty = false
|
||||
|
||||
timeout(0.1) do
|
||||
|
@ -91,6 +99,8 @@ class TestGemStreamUI < Gem::TestCase
|
|||
end
|
||||
|
||||
def test_ask_yes_no_no_tty_without_default
|
||||
skip 'TTY handling is broken on windows' if Gem.win_platform?
|
||||
|
||||
@in.tty = false
|
||||
|
||||
timeout(0.1) do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue