summaryrefslogtreecommitdiff
path: root/test/io
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-29 12:49:00 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-02-05 11:45:04 +0900
commit9ef7780b0946c2bc96fe39b32c75c08134bfb408 (patch)
treeeb681fd391763a7a836639b027b611679fd97313 /test/io
parentfcdccbff0166566b2cf034a34f572fad8d9acb8b (diff)
[ruby/io-console] Run subprocesses without test libraries
Now io/console is loaded from test-unit indirectly, test-unit requires power_assert which requires io/console. https://github.com/ruby/io-console/commit/8817d07951 https://github.com/ruby/io-console/commit/639cce89de
Diffstat (limited to 'test/io')
-rw-r--r--test/io/console/test_io_console.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index bec10c5da0..adcff4a4ea 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -545,14 +545,14 @@ end
TestIO_Console.class_eval do
def test_stringio_getch
- assert_separately %w"--disable=gems -rstringio -rio/console", %q{
- assert_operator(StringIO, :method_defined?, :getch)
+ assert_ruby_status %w"--disable=gems -rstringio -rio/console", %q{
+ abort unless StringIO.method_defined?(:getch)
}
- assert_separately %w"--disable=gems -rio/console -rstringio", %q{
- assert_operator(StringIO, :method_defined?, :getch)
+ assert_ruby_status %w"--disable=gems -rio/console -rstringio", %q{
+ abort unless StringIO.method_defined?(:getch)
}
- assert_separately %w"--disable=gems -rstringio", %q{
- assert_not_operator(StringIO, :method_defined?, :getch)
+ assert_ruby_status %w"--disable=gems -rstringio", %q{
+ abort if StringIO.method_defined?(:getch)
}
end
end