Class: GreenPepper::KeywordError

Inherits:
ExampleResult show all
Includes:
KeywordFormat
Defined in:
lib/greenpepper/writer/freetextresult.rb

Direct Known Subclasses

ActionError, HeaderError

Instance Attribute Summary

Attributes inherited from ExampleResult

#silent

Instance Method Summary collapse

Methods included from KeywordFormat

#error, #green_highlight, #grey_highlight, #highlight, #indent, #indent2, #newline, #red_highlight, #yellow_highlight

Methods inherited from ExampleResult

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

Constructor Details

This class inherits a constructor from GreenPepper::ExampleResult

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


187
188
189
# File 'lib/greenpepper/writer/freetextresult.rb', line 187

def error?
  true
end

#update_stats(results) ⇒ Object



183
184
185
# File 'lib/greenpepper/writer/freetextresult.rb', line 183

def update_stats(results)
  results.add_error
end