Class: Riot::VerboseReporter

Inherits:
StoryReporter show all
Defined in:
lib/riot/reporter.rb

Instance Attribute Summary

Attributes inherited from Reporter

#errors, #failures, #passes

Instance Method Summary collapse

Methods inherited from StoryReporter

#describe_context, #fail, #pass

Methods inherited from IOReporter

#initialize, #results, #say

Methods inherited from Reporter

#describe_context, #initialize, #report, #summarize

Constructor Details

This class inherits a constructor from Riot::IOReporter

Instance Method Details

#error(description, e) ⇒ Object



54
55
56
57
58
# File 'lib/riot/reporter.rb', line 54

def error(description, e)
  super(description, e)
  say "    #{e.class.name} occured".red
  e.backtrace.each { |line| say "      at #{line}".red }
end