diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-09 08:43:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-09 08:43:12 +0000 |
commit | 9ef55da91006a19dc4fb612c735b335175b3259b (patch) | |
tree | d1b5676b11b6cf64709f040c2c1b4aba60da02fe /lib/test/unit | |
parent | 289d6bb30f4c2fffa2437436030c889f10522e72 (diff) | |
download | ruby-9ef55da91006a19dc4fb612c735b335175b3259b.tar.gz |
test/unit/assertions.rb: return exception
* lib/test/unit/assertions.rb (assert_raise_with_message): return
raised exception same as assert_raise.
* test/ruby, test/-ext-: use assert_raise_with_message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test/unit')
-rw-r--r-- | lib/test/unit/assertions.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb index 29b12f7ca4..6212384107 100644 --- a/lib/test/unit/assertions.rb +++ b/lib/test/unit/assertions.rb @@ -99,6 +99,7 @@ module Test ex = assert_raise(exception, msg) {yield} msg = message(msg, "") {"Expected Exception(#{exception}) was raised, but the message doesn't match"} __send__(assert, expected, ex.message, msg) + ex end # :call-seq: |