class Lucid::Parser::SpecBuilder::ScenarioOutlineBuilder

Attributes

examples_sections[R]

Public Instance Methods

add_child(child) click to toggle source
# File lib/lucid/spec_builder.rb, line 257
def add_child(child)
  children << child
end
add_examples(examples_section, node) click to toggle source
# File lib/lucid/spec_builder.rb, line 248
def add_examples(examples_section, node)
  @examples_sections ||= []
  @examples_sections << [examples_section, node]
end
children() click to toggle source
# File lib/lucid/spec_builder.rb, line 261
def children
  @children ||= []
end
result(background, language, feature_tags) click to toggle source
# File lib/lucid/spec_builder.rb, line 230
def result(background, language, feature_tags)
  scenario_outline = Lucid::AST::ScenarioOutline.new(
    language,
    location,
    background,
    comment,
    tags,
    feature_tags,
    node.keyword,
    node.name,
    node.description,
    steps(language),
    examples_sections
  )
  scenario_outline.gherkin_statement(node)
  scenario_outline
end
steps(language) click to toggle source
# File lib/lucid/spec_builder.rb, line 253
def steps(language)
  children.map { |child| child.result(language) }
end