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:
parent
49cbbe7a88
commit
f7aef0f7b1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue