summaryrefslogtreecommitdiff
path: root/test/-ext-/marshal/test_usrmarshal.rb
diff options
context:
space:
mode:
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 54adace7d6b..ae23223e15e 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