aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-20 04:37:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-20 04:37:26 +0000
commite06aaf699d03daa4020d55c34876e5ec12f0e91d (patch)
treef57733bc5732b9f38c6e93cb41cfcd7c237ff382 /test
parent9e8dfaa8b09b285a1260a6b97ecfac663fb79107 (diff)
downloadruby-e06aaf699d03daa4020d55c34876e5ec12f0e91d.tar.gz
assertions.rb: return the exception
* test/lib/test/unit/assertions.rb (assert_syntax_error): return the rescued exception object as well as assert_raise. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/lib/test/unit/assertions.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lib/test/unit/assertions.rb b/test/lib/test/unit/assertions.rb
index e2bea19c00..fd51012fb5 100644
--- a/test/lib/test/unit/assertions.rb
+++ b/test/lib/test/unit/assertions.rb
@@ -495,6 +495,7 @@ EOT
catch {|tag| eval(code, binding, fname, line)}
end
assert_match(error, e.message, mesg)
+ e
ensure
$VERBOSE = verbose
end