diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-28 09:41:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-28 09:41:34 +0000 |
commit | f7aef0f7b1ad5fec79054ad532208d9430ec89aa (patch) | |
tree | a21c2fe6c5d2e53e8943e6d9ba3b3fbdebc2bafe | |
parent | 49cbbe7a8898b8bf7bfb1dc8fbd9551cd0dd31b4 (diff) | |
download | ruby-f7aef0f7b1ad5fec79054ad532208d9430ec89aa.tar.gz |
* lib/mini/test.rb (assert_match): get rid of confusion of
ruby-mode.el.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | lib/mini/test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mini/test.rb b/lib/mini/test.rb index a8a65821a5..53715ef088 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 |