Method: SpinnerFormatter#exception

Defined in:
lib/mspec/runner/formatters/spinner.rb

#exception(exception) ⇒ Object

Callback for the MSpec :exception event. Changes the color used to display the tally of errors and failures



88
89
90
91
92
# File 'lib/mspec/runner/formatters/spinner.rb', line 88

def exception(exception)
  super
  @fail_color =  "31" if exception.failure?
  @error_color = "33" unless exception.failure?
end