Class: Test::Unit::Error
- Inherits:
-
Object
- Object
- Test::Unit::Error
- Defined in:
- lib/test/unit/show_code.rb
Instance Method Summary collapse
Instance Method Details
#long_display ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/test/unit/show_code.rb', line 46 def long_display backtrace = filter_backtrace(@exception.backtrace) out = backtrace[0].sub(/\A(.+:\d+).*/, '\\1') code = Test::Unit._load_line(out) backtrace = backtrace.join("\n ") if code "Error:\n#@test_name:\n#{}\n => #{code}\n #{backtrace}" else "Error:\n#@test_name:\n#{}\n #{backtrace}" end end |