@@ -37,7 +37,7 @@ def setup
3737
3838 def test_ask
3939 skip 'TTY detection broken on windows' if
40- Gem . win_platform? unless RUBY_VERSION > '1.9.2'
40+ Gem . win_platform? && RUBY_VERSION <= '1.9.2'
4141
4242 Timeout . timeout ( 1 ) do
4343 expected_answer = "Arthur, King of the Britons"
@@ -49,7 +49,7 @@ def test_ask
4949
5050 def test_ask_no_tty
5151 skip 'TTY detection broken on windows' if
52- Gem . win_platform? unless RUBY_VERSION > '1.9.2'
52+ Gem . win_platform? && RUBY_VERSION <= '1.9.2'
5353
5454 @in . tty = false
5555
@@ -61,7 +61,7 @@ def test_ask_no_tty
6161
6262 def test_ask_for_password
6363 skip 'Always uses $stdin on windows' if
64- Gem . win_platform? unless RUBY_VERSION > '1.9.2'
64+ Gem . win_platform? && RUBY_VERSION <= '1.9.2'
6565
6666 Timeout . timeout ( 1 ) do
6767 expected_answer = "Arthur, King of the Britons"
@@ -73,7 +73,7 @@ def test_ask_for_password
7373
7474 def test_ask_for_password_no_tty
7575 skip 'TTY handling is broken on windows' if
76- Gem . win_platform? unless RUBY_VERSION > '1.9.2'
76+ Gem . win_platform? && RUBY_VERSION <= '1.9.2'
7777
7878 @in . tty = false
7979
@@ -85,7 +85,7 @@ def test_ask_for_password_no_tty
8585
8686 def test_ask_yes_no_no_tty_with_default
8787 skip 'TTY handling is broken on windows' if
88- Gem . win_platform? unless RUBY_VERSION > '1.9.2'
88+ Gem . win_platform? && RUBY_VERSION <= '1.9.2'
8989
9090 @in . tty = false
9191
@@ -100,7 +100,7 @@ def test_ask_yes_no_no_tty_with_default
100100
101101 def test_ask_yes_no_no_tty_without_default
102102 skip 'TTY handling is broken on windows' if
103- Gem . win_platform? unless RUBY_VERSION > '1.9.2'
103+ Gem . win_platform? && RUBY_VERSION <= '1.9.2'
104104
105105 @in . tty = false
106106
0 commit comments