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