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

Instance Method Details

#long_displayObject

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#{message}\n"
end

#messageObject

Removes the exception class from the message.



17
18
19
# File 'lib/shell_test/unit/shim.rb', line 17

def message
  @exception.message
end

#single_character_displayObject

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