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

ruby-changes:8082

From: nobu <ko1@a...>
Date: Sun, 28 Sep 2008 18:41:40 +0900 (JST)
Subject: [ruby-changes:8082] Ruby:r19608 (trunk): * lib/mini/test.rb (assert_match): get rid of confusion of

nobu	2008-09-28 18:41:34 +0900 (Sun, 28 Sep 2008)

  New Revision: 19608

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

  Log:
    * lib/mini/test.rb (assert_match): get rid of confusion of
      ruby-mode.el.

  Modified files:
    trunk/lib/mini/test.rb

Index: lib/mini/test.rb
===================================================================
--- lib/mini/test.rb	(revision 19607)
+++ lib/mini/test.rb	(revision 19608)
@@ -104,8 +104,8 @@
 
     def assert_match exp, act, msg = nil
       msg = message(msg) { "Expected #{mu_pp(act)} to match #{mu_pp(exp)}" }
-      assert_respond_to act, :=~
-      exp = /#{exp}/ if String === exp && String === act
+      assert_respond_to(act, :"=~")
+      (exp = /#{exp}/) if String === exp && String === act
       assert act =~ exp, msg
     end
 

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

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