mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
assertions.rb: assert_all_assertions
* test/lib/test/unit/assertions.rb (assert_all_assertions): prefix assert to be filtered out. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d97b8d0d6c
commit
af015a9adc
1 changed files with 2 additions and 1 deletions
|
@ -835,12 +835,13 @@ eom
|
|||
end
|
||||
end
|
||||
|
||||
def all_assertions(msg = nil)
|
||||
def assert_all_assertions(msg = nil)
|
||||
all = AllFailures.new
|
||||
yield all
|
||||
ensure
|
||||
assert(all.pass?, message(msg) {all.message.chomp(".")})
|
||||
end
|
||||
alias all_assertions assert_all_assertions
|
||||
|
||||
def build_message(head, template=nil, *arguments) #:nodoc:
|
||||
template &&= template.chomp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue