From 180bf48fea3acfcc762329ffba0fc04a9cc53600 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 11 Feb 2011 05:33:21 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ lib/test/unit/assertions.rb | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 45d572d9a7..a76adc5c8c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Feb 11 14:33:18 2011 Nobuyoshi Nakada + + * lib/test/unit/assertions.rb (assert_no_match): alias for + backward compatibility. + Fri Feb 11 12:06:48 2011 Nobuyoshi Nakada * ruby.c (add_gems, require_libraries, proc_options): add diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb index 5a0c01a4fb..165c72d075 100644 --- a/lib/test/unit/assertions.rb +++ b/lib/test/unit/assertions.rb @@ -155,6 +155,7 @@ EOT mname = ('assert_not_' << m.to_s[/.*?_(.*)/, 1]) alias_method(mname, m) unless ms.include? mname end + alias assert_no_match assert_not_match def build_message(head, template=nil, *arguments) template &&= template.chomp