Class: GreenPepper::ErrorExampleResult

Inherits:
HtmlExampleResult show all
Defined in:
lib/greenpepper/writer/htmlresult.rb

Direct Known Subclasses

WriteExceptionExampleResult

Instance Attribute Summary

Attributes inherited from HtmlExampleResult

#column, #row

Attributes inherited from ExampleResult

#silent

Instance Method Summary collapse

Methods inherited from ExampleResult

#failure?, #ignored?, #initialize, #success?, #update_stats

Constructor Details

This class inherits a constructor from GreenPepper::ExampleResult

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


64
65
66
# File 'lib/greenpepper/writer/htmlresult.rb', line 64

def error?
  true
end

#write(cell, options = {}) ⇒ Object



68
69
70
71
72
# File 'lib/greenpepper/writer/htmlresult.rb', line 68

def write(cell, options = {})
  cell = super(cell, options)
  cell["style"] = "background-color: #{Html::YELLOW}"
  cell
end