Merge pull request #1982 from ksss/err-msg

Show error class name when raise Error
This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-03-31 09:32:07 +09:00
+1 -1
View File
@@ -60,7 +60,7 @@ def assert(str = 'Assertion failed', iso = '')
$asserts.push "Skip: #{str} #{iso} #{e.cause}"
t_print('?')
else
$asserts.push(assertion_string('Error: ', str, iso, e))
$asserts.push(assertion_string("#{e.class}: ", str, iso, e))
$kill_test += 1
t_print('X')
end