[前][次][番号順一覧][スレッド一覧]

ruby-changes:34035

From: nobu <ko1@a...>
Date: Sun, 25 May 2014 22:53:44 +0900 (JST)
Subject: [ruby-changes:34035] nobu:r46116 (trunk): test_minitest_unit.rb: invoke by array form

nobu	2014-05-25 22:53:25 +0900 (Sun, 25 May 2014)

  New Revision: 46116

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46116

  Log:
    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.

  Modified files:
    trunk/test/minitest/test_minitest_unit.rb
Index: test/minitest/test_minitest_unit.rb
===================================================================
--- test/minitest/test_minitest_unit.rb	(revision 46115)
+++ test/minitest/test_minitest_unit.rb	(revision 46116)
@@ -1343,8 +1343,8 @@ class TestMiniTestUnitTestCase < MiniTes https://github.com/ruby/ruby/blob/trunk/test/minitest/test_minitest_unit.rb#L1343
 
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]