diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-02 01:31:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-02 01:31:00 +0000 |
commit | 27ecfa0545b06ec0a7f1714c4adb5d30eb986963 (patch) | |
tree | c000e24b8011f3f25c4c82b8ea86086d894037d4 /test | |
parent | 2f49c8ba8025e5222f356c2d2bf3bcbb75b9fea1 (diff) | |
download | ruby-27ecfa0545b06ec0a7f1714c4adb5d30eb986963.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/test/unit/assertions.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lib/test/unit/assertions.rb b/test/lib/test/unit/assertions.rb index c9d148d55a..9277fbc6b6 100644 --- a/test/lib/test/unit/assertions.rb +++ b/test/lib/test/unit/assertions.rb @@ -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 |