Skip to content

Commit

Permalink
[ruby/io-console] Run subprocesses without test libraries
Browse files Browse the repository at this point in the history
Now io/console is loaded from test-unit indirectly, test-unit
requires power_assert which requires io/console.

ruby/io-console@8817d07951
ruby/io-console@639cce89de
  • Loading branch information
nobu committed Feb 5, 2021
1 parent fcdccbf commit 9ef7780
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/io/console/test_io_console.rb
Original file line number Diff line number Diff line change
Expand Up @@ -545,14 +545,14 @@ def test_pressed_invalid

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

0 comments on commit 9ef7780

Please sign in to comment.