Class: GreenPepper::FailureExampleResult
- Inherits:
-
HtmlExampleResult
- Object
- ExampleResult
- HtmlExampleResult
- GreenPepper::FailureExampleResult
- Defined in:
- lib/greenpepper/writer/htmlresult.rb
Direct Known Subclasses
WriteExpectedExampleResult, WriteFailExampleResult, WriteMissingExampleResult, WriteSurplusExampleResult
Instance Attribute Summary
Attributes inherited from HtmlExampleResult
Attributes inherited from ExampleResult
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
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, = {}) cell = super(cell, ) cell["style"] = "background-color: #{Html::RED}" cell end |