aboutsummaryrefslogtreecommitdiffstats
path: root/test/-ext-/marshal/test_usrmarshal.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-09 08:43:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-09 08:43:12 +0000
commit9ef55da91006a19dc4fb612c735b335175b3259b (patch)
treed1b5676b11b6cf64709f040c2c1b4aba60da02fe /test/-ext-/marshal/test_usrmarshal.rb
parent289d6bb30f4c2fffa2437436030c889f10522e72 (diff)
downloadruby-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 'test/-ext-/marshal/test_usrmarshal.rb')
-rw-r--r--test/-ext-/marshal/test_usrmarshal.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/-ext-/marshal/test_usrmarshal.rb b/test/-ext-/marshal/test_usrmarshal.rb
index 54adace7d6..ae23223e15 100644
--- a/test/-ext-/marshal/test_usrmarshal.rb
+++ b/test/-ext-/marshal/test_usrmarshal.rb
@@ -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