Class: Rocha::Reporter::Example
- Inherits:
-
Object
- Object
- Rocha::Reporter::Example
- Defined in:
- lib/rocha/reporter/example.rb
Instance Attribute Summary collapse
-
#metadata ⇒ Object
(also: #options)
readonly
Returns the value of attribute metadata.
-
#parent ⇒ Object
(also: #example_group)
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
- #failed? ⇒ Boolean
-
#initialize(data, parent) ⇒ Example
constructor
A new instance of Example.
- #passed? ⇒ Boolean
- #update_metadata(data) ⇒ Object
Constructor Details
Instance Attribute Details
#metadata ⇒ Object (readonly) Also known as: options
Returns the value of attribute metadata.
8 9 10 |
# File 'lib/rocha/reporter/example.rb', line 8 def @metadata end |
#parent ⇒ Object (readonly) Also known as: example_group
Returns the value of attribute parent.
8 9 10 |
# File 'lib/rocha/reporter/example.rb', line 8 def parent @parent end |
Instance Method Details
#failed? ⇒ Boolean
25 26 27 |
# File 'lib/rocha/reporter/example.rb', line 25 def failed? execution_result[:status] == "failed" end |
#passed? ⇒ Boolean
21 22 23 |
# File 'lib/rocha/reporter/example.rb', line 21 def passed? execution_result[:status] == "passed" end |
#update_metadata(data) ⇒ Object
29 30 31 |
# File 'lib/rocha/reporter/example.rb', line 29 def (data) .update(data) end |