Class: GreenPepper::SuccessExampleResult

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

Direct Known Subclasses

WriteSucessExampleResult

Instance Attribute Summary

Attributes inherited from HtmlExampleResult

#column, #row

Attributes inherited from ExampleResult

#silent

Instance Method Summary collapse

Methods inherited from ExampleResult

#error?, #failure?, #ignored?, #initialize, #update_stats

Constructor Details

This class inherits a constructor from GreenPepper::ExampleResult

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/greenpepper/writer/htmlresult.rb', line 40

def success?
  true
end

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



44
45
46
47
48
# File 'lib/greenpepper/writer/htmlresult.rb', line 44

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