From 7c6e06eab8dc8e2104df4ff3a96065801e71721c Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 28 Sep 2008 09:41:34 +0000 Subject: * lib/mini/test.rb (assert_match): get rid of confusion of ruby-mode.el. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/mini/test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/mini/test.rb b/lib/mini/test.rb index a8a65821a..53715ef08 100644 --- a/lib/mini/test.rb +++ b/lib/mini/test.rb @@ -104,8 +104,8 @@ module Mini 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 -- cgit