Class: Test::Unit::Error
- Inherits:
-
Object
- Object
- Test::Unit::Error
- Defined in:
- lib/test_extensions/test_colorizer.rb
Instance Method Summary collapse
-
#long_display ⇒ Object
the long message that is displayed after test is run.
-
#single_character_display ⇒ Object
the āEā that is displayed as the tests are run.
Instance Method Details
#long_display ⇒ Object
the long message that is displayed after test is run
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/test_extensions/test_colorizer.rb', line 15 def long_display backtrace = filter_backtrace(@exception.backtrace).join("\n ") [ "Error".red.bold, ":\n", "#@test_name:".white, "\n", "#{}".red, "\n #{backtrace}".gsub(/:(\d+):/,":#{'\1'.red}:") ].join('') end |
#single_character_display ⇒ Object
the āEā that is displayed as the tests are run
10 11 12 |
# File 'lib/test_extensions/test_colorizer.rb', line 10 def single_character_display "E".red.bold end |