summaryrefslogtreecommitdiff
path: root/test/io/console/test_io_console.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/io/console/test_io_console.rb')
-rw-r--r--test/io/console/test_io_console.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index 2de15f1f24..ceaf5b9d0f 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -271,8 +271,14 @@ end if defined?(IO.console)
class TestIO_Console < Test::Unit::TestCase
def test_stringio_getch
- assert_ruby_status(%w"--disable=gems -rstringio -rio/console", "exit(StringIO.method_defined?(:getch))")
- assert_ruby_status(%w"--disable=gems -rio/console -rstringio", "exit(StringIO.method_defined?(:getch))")
- assert_ruby_status(%w"--disable=gems -rstringio", "exit(!StringIO.method_defined?(:getch))")
+ assert_separately %w"--disable=gems -rstringio -rio/console", %q{
+ assert_operator(StringIO, :method_defined?, :getch)
+ }
+ assert_separately %w"--disable=gems -rio/console -rstringio", %q{
+ assert_operator(StringIO, :method_defined?, :getch)
+ }
+ assert_separately %w"--disable=gems -rstringio", %q{
+ assert_not_operator(StringIO, :method_defined?, :getch)
+ }
end
end