1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2008-09-28 09:41:34 +00:00
parent 49cbbe7a88
commit f7aef0f7b1

View file

@ -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