Module: ShellTest::Unit::SkipDisplay
- Defined in:
- lib/shell_test/unit/shim.rb
Overview
Modifies how errors related to a SkipException are displayed.
Instance Method Summary collapse
-
#long_display ⇒ Object
Updates the output to look like a MiniTest skip error.
-
#message ⇒ Object
Removes the exception class from the message.
-
#single_character_display ⇒ Object
Display S rather than E in the progress.
Instance Method Details
#long_display ⇒ Object
Updates the output to look like a MiniTest skip error.
22 23 24 25 |
# File 'lib/shell_test/unit/shim.rb', line 22 def long_display backtrace = filter_backtrace(@exception.backtrace) "Skipped:\n#@test_name [#{backtrace[0].sub(/:in `.*$/, "")}]:\n#{}\n" end |
#message ⇒ Object
Removes the exception class from the message.
17 18 19 |
# File 'lib/shell_test/unit/shim.rb', line 17 def @exception. end |
#single_character_display ⇒ Object
Display S rather than E in the progress.
12 13 14 |
# File 'lib/shell_test/unit/shim.rb', line 12 def single_character_display "S" end |