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
147 148 149 150 151 152 153 154 155 156 |
# File 'lib/cuporter/node/types.rb', line 147 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
138 139 140 |
# File 'lib/cuporter/node/types.rb', line 138 def sort! # no op end |
#total ⇒ Object
don’t total at the example set level
143 144 145 |
# File 'lib/cuporter/node/types.rb', line 143 def total # no op end |