Show error class name when raise Error

This commit is contained in:
ksss
2014-03-31 08:14:14 +09:00
parent ebb29f0450
commit 15eabcdbc4
+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