Class: Cuporter::Node::Types::Examples
- Includes:
- Cuporter::Node::Tagged
- Defined in:
- lib/cuporter/node/types.rb
Overview
The set of examples in a scenario outline
Instance Attribute Summary
Attributes included from Cuporter::Node::Tagged
Instance Method Summary collapse
- #add_child(other) ⇒ Object
-
#sort! ⇒ Object
don’t sort scenario outline examples.
-
#total ⇒ Object
don’t total at the example set level.
Methods included from Cuporter::Node::Tagged
#filter_child, #has_tags?, #tags
Instance Method Details
#add_child(other) ⇒ Object
133 134 135 136 137 138 139 140 141 142 |
# File 'lib/cuporter/node/types.rb', line 133 def add_child(other) cn = other['cuke_name'].dup cn.sub!(/^\|/, '') cn.split('|').each do |cell_text| cell = Nokogiri::XML::Node.new("span", document) cell.content = cell_text.strip other << cell end super(other) end |
#sort! ⇒ Object
don’t sort scenario outline examples
124 125 126 |
# File 'lib/cuporter/node/types.rb', line 124 def sort! # no op end |
#total ⇒ Object
don’t total at the example set level
129 130 131 |
# File 'lib/cuporter/node/types.rb', line 129 def total # no op end |