1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_io_console.rb: chomp results

* test/io/console/test_io_console.rb (run_pty): IO#readlines
  ignores the given block.  need map to chomp the results.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-12-25 03:51:27 +00:00
parent f5f6218a23
commit d33a3837cb

View file

@ -254,7 +254,7 @@ class TestIO_Console < Test::Unit::TestCase
rescue RuntimeError
skip $!
else
result = r.readlines(&:chomp)
result = r.readlines.map(&:chomp)
Process.wait(pid)
if block_given?
yield result