mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_minitest_unit.rb: invoke by array form
* test/minitest/test_minitest_unit.rb (test_capture_subprocess_io): invoke by array form. quoting is not portable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6f2b1d6e82
commit
62fc67b27b
1 changed files with 2 additions and 2 deletions
|
@ -1343,8 +1343,8 @@ class TestMiniTestUnitTestCase < MiniTest::Unit::TestCase
|
|||
|
||||
non_verbose do
|
||||
out, err = capture_subprocess_io do
|
||||
system("echo 'hi'")
|
||||
system("echo 'bye!' 1>&2")
|
||||
system("echo", "hi")
|
||||
system("echo", "bye!", out: :err)
|
||||
end
|
||||
|
||||
assert_equal "hi\n", out
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue