summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-12 14:17:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-12 14:17:54 +0000
commit7f46fadd9d7f8ee32d9837a67e212f55e23666b8 (patch)
tree33a1f8e8f60c309d3752134ff3c6fea6401b2773 /lib
parent58b325366dbc5c84be12fb336ee5e68f208d9365 (diff)
* 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
Diffstat (limited to 'lib')
-rw-r--r--lib/test/unit/assertions.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb
index 165c72d075..db0679cafb 100644
--- a/lib/test/unit/assertions.rb
+++ b/lib/test/unit/assertions.rb
@@ -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