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

* lib/test/unit/assertions.rb (assert_no_match): alias for

backward compatibility.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-02-11 05:33:21 +00:00
parent 12000bc2de
commit 180bf48fea
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Fri Feb 11 14:33:18 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit/assertions.rb (assert_no_match): alias for
backward compatibility.
Fri Feb 11 12:06:48 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> Fri Feb 11 12:06:48 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (add_gems, require_libraries, proc_options): add * ruby.c (add_gems, require_libraries, proc_options): add

View file

@ -155,6 +155,7 @@ EOT
mname = ('assert_not_' << m.to_s[/.*?_(.*)/, 1]) mname = ('assert_not_' << m.to_s[/.*?_(.*)/, 1])
alias_method(mname, m) unless ms.include? mname alias_method(mname, m) unless ms.include? mname
end end
alias assert_no_match assert_not_match
def build_message(head, template=nil, *arguments) def build_message(head, template=nil, *arguments)
template &&= template.chomp template &&= template.chomp