diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-30 13:01:35 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-30 13:01:35 +0000 |
commit | 8da8d4b043c37b53a69803c71ff36b478d4776d0 (patch) | |
tree | 7c8cec15645e74f19c88e4eb5b210b96174c7d03 /test/rubygems/test_gem_stream_ui.rb | |
parent | c5cb386eba6d9a2d9a8e6ffa8c30137d0c4660c1 (diff) | |
download | ruby-8da8d4b043c37b53a69803c71ff36b478d4776d0.tar.gz |
Merge RubyGems 3.0.0.beta1.
* It drop to support < Ruby 2.2
* Cleanup deprecated methods and classes.
* Mark obsoleted methods to deprecate.
* and other enhancements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_stream_ui.rb')
-rw-r--r-- | test/rubygems/test_gem_stream_ui.rb | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/test/rubygems/test_gem_stream_ui.rb b/test/rubygems/test_gem_stream_ui.rb index 51fd51c474..56ab1cee5b 100644 --- a/test/rubygems/test_gem_stream_ui.rb +++ b/test/rubygems/test_gem_stream_ui.rb @@ -36,9 +36,6 @@ class TestGemStreamUI < Gem::TestCase end def test_ask - skip 'TTY detection broken on windows' if - Gem.win_platform? && RUBY_VERSION <= '1.9.2' - Timeout.timeout(1) do expected_answer = "Arthur, King of the Britons" @in.string = "#{expected_answer}\n" @@ -48,21 +45,15 @@ class TestGemStreamUI < Gem::TestCase end def test_ask_no_tty - skip 'TTY detection broken on windows' if - Gem.win_platform? && RUBY_VERSION <= '1.9.2' - @in.tty = false Timeout.timeout(0.1) do answer = @sui.ask("what is your favorite color?") - assert_equal nil, answer + assert_nil answer end end def test_ask_for_password - skip 'Always uses $stdin on windows' if - Gem.win_platform? && RUBY_VERSION <= '1.9.2' - Timeout.timeout(1) do expected_answer = "Arthur, King of the Britons" @in.string = "#{expected_answer}\n" @@ -72,21 +63,15 @@ class TestGemStreamUI < Gem::TestCase end def test_ask_for_password_no_tty - skip 'TTY handling is broken on windows' if - Gem.win_platform? && RUBY_VERSION <= '1.9.2' - @in.tty = false Timeout.timeout(0.1) do answer = @sui.ask_for_password("what is the airspeed velocity of an unladen swallow?") - assert_equal nil, answer + assert_nil answer end end def test_ask_yes_no_no_tty_with_default - skip 'TTY handling is broken on windows' if - Gem.win_platform? && RUBY_VERSION <= '1.9.2' - @in.tty = false Timeout.timeout(0.1) do @@ -99,9 +84,6 @@ 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? && RUBY_VERSION <= '1.9.2' - @in.tty = false Timeout.timeout(0.1) do |