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 | 7c6e06eab8dc8e2104df4ff3a96065801e71721c (patch) | |
tree | a21c2fe6c5d2e53e8943e6d9ba3b3fbdebc2bafe | |
parent | 2d453251d5f7522cdfd1a03ed93802ab64e11723 (diff) | |
download | ruby-7c6e06eab8dc8e2104df4ff3a96065801e71721c.tar.gz ruby-7c6e06eab8dc8e2104df4ff3a96065801e71721c.tar.xz ruby-7c6e06eab8dc8e2104df4ff3a96065801e71721c.zip |
* 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
-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 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 |