Skip to content

Commit

Permalink
Show error class name when raise Error
Browse files Browse the repository at this point in the history
  • Loading branch information
ksss committed Mar 30, 2014
1 parent ebb29f0 commit 15eabcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/assert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15eabcd

Please sign in to comment.