Class: GoldenRose::ParentItem
- Inherits:
-
SubtestItem
- Object
- SubtestItem
- GoldenRose::ParentItem
- Defined in:
- lib/golden_rose/parent_item.rb
Instance Attribute Summary collapse
-
#subtests ⇒ Object
Returns the value of attribute subtests.
Attributes inherited from SubtestItem
Instance Method Summary collapse
- #failures_count ⇒ Object
-
#node_id ⇒ Object
Used in html generator.
Methods inherited from SubtestItem
Constructor Details
This class inherits a constructor from GoldenRose::SubtestItem
Instance Attribute Details
#subtests ⇒ Object
Returns the value of attribute subtests.
6 7 8 |
# File 'lib/golden_rose/parent_item.rb', line 6 def subtests @subtests end |
Instance Method Details
#failures_count ⇒ Object
13 14 15 |
# File 'lib/golden_rose/parent_item.rb', line 13 def failures_count @failures_count ||= failed_subtests? ? failed_subtests.size : nil end |
#node_id ⇒ Object
Used in html generator
9 10 11 |
# File 'lib/golden_rose/parent_item.rb', line 9 def node_id @node_id ||= "node_#{object_id}" end |