1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2013-10-09 08:43:12 +00:00
parent 289d6bb30f
commit 9ef55da910
17 changed files with 68 additions and 95 deletions

View file

@ -21,8 +21,7 @@ module Bug::Marshal
end
def test_incompat
e = assert_raise(ArgumentError) {::Marshal.load(old_dump)}
assert_equal("dump format error", e.message)
assert_raise_with_message(ArgumentError, "dump format error") {::Marshal.load(old_dump)}
end
def test_compat