diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-21 14:53:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-21 14:53:31 +0000 |
commit | ac6268dbf0b1289242485ef2f86ed539f58e873c (patch) | |
tree | 358f35a2be9818af50410a8b708af4723aa1fceb /lib/test/unit | |
parent | de004e3a5cbaf4ae586e493a2b6911f463ffe6e3 (diff) | |
download | ruby-ac6268dbf0b1289242485ef2f86ed539f58e873c.tar.gz |
assertions.rb: fix omitted message
* lib/test/unit/assertions.rb (assert_raise_with_message): remove
omitted message by splatting nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test/unit')
-rw-r--r-- | lib/test/unit/assertions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb index ae10e0bb7a..3ed3dc339e 100644 --- a/lib/test/unit/assertions.rb +++ b/lib/test/unit/assertions.rb @@ -98,7 +98,7 @@ module Test raise TypeError, "Expected #{expected.inspect} to be a kind of String or Regexp, not #{expected.class}" end - ex = assert_raise(exception, msg) {yield} + 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 |