summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_stream_ui.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_stream_ui.rb')
-rw-r--r--test/rubygems/test_gem_stream_ui.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_stream_ui.rb b/test/rubygems/test_gem_stream_ui.rb
index 1bc0e0bbd5..4bc6df6f93 100644
--- a/test/rubygems/test_gem_stream_ui.rb
+++ b/test/rubygems/test_gem_stream_ui.rb
@@ -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