Class: GreenPepper::FailureExampleResult

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

Instance Attribute Summary

Attributes inherited from HtmlExampleResult

#column, #row

Attributes inherited from ExampleResult

#silent

Instance Method Summary collapse

Methods inherited from ExampleResult

#error?, #ignored?, #initialize, #success?, #update_stats

Constructor Details

This class inherits a constructor from GreenPepper::ExampleResult

Instance Method Details

#failure?Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/greenpepper/writer/htmlresult.rb', line 52

def failure?
  true
end

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



56
57
58
59
60
# File 'lib/greenpepper/writer/htmlresult.rb', line 56

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