mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* lib/test/unit.rb (assert_include): add alias.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
58b325366d
commit
7f46fadd9d
10 changed files with 20 additions and 15 deletions
|
@ -155,7 +155,8 @@ EOT
|
|||
mname = ('assert_not_' << m.to_s[/.*?_(.*)/, 1])
|
||||
alias_method(mname, m) unless ms.include? mname
|
||||
end
|
||||
alias assert_no_match assert_not_match
|
||||
alias assert_include assert_includes
|
||||
alias assert_not_include assert_not_includes
|
||||
|
||||
def build_message(head, template=nil, *arguments)
|
||||
template &&= template.chomp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue