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

ruby-changes:35087

From: nobu <ko1@a...>
Date: Wed, 13 Aug 2014 21:16:36 +0900 (JST)
Subject: [ruby-changes:35087] nobu:r47169 (trunk): envutil.rb: fix argument order

nobu	2014-08-13 21:16:30 +0900 (Wed, 13 Aug 2014)

  New Revision: 47169

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

  Log:
    envutil.rb: fix argument order
    
    * test/ruby/envutil.rb (Test::Test#assert_warning): fix expected
      and actual results order.

  Modified files:
    trunk/test/ruby/envutil.rb
Index: test/ruby/envutil.rb
===================================================================
--- test/ruby/envutil.rb	(revision 47168)
+++ test/ruby/envutil.rb	(revision 47169)
@@ -400,7 +400,7 @@ eom https://github.com/ruby/ruby/blob/trunk/test/ruby/envutil.rb#L400
 
       def assert_warning(pat, msg = nil)
         stderr = EnvUtil.verbose_warning { yield }
-        msg = message(msg) {diff stderr, pat}
+        msg = message(msg) {diff pat, stderr}
         assert(pat === stderr, msg)
       end
 

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

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