Class: GreenPepper::WriteMissingExampleResult

Inherits:
FailureExampleResult 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 FailureExampleResult

#failure?

Methods inherited from ExampleResult

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

Constructor Details

This class inherits a constructor from GreenPepper::ExampleResult

Instance Method Details

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



160
161
162
163
164
165
166
167
168
169
170
171
# File 'lib/greenpepper/writer/htmlresult.rb', line 160

def write(cell, options = {})
  super(cell, options)

  missing = LibXML::XML::Node.new('i')
  missing << "Missing "

  content = cell.content

  cell.content = ""
  cell << missing
  cell << content
end