spec/helpers.rb
# stage should be a SegmentSet-holding instance variable of ProcessingManager
stage should be a SegmentSet-holding instance variable of ProcessingManager
stage should be a SegmentSet - holding instance variable of ProcessingManager
def parsed_example_tokens(type: :all, stage: nil, tag: nil, options: {})
    parsed = parse_examples(tag: tag, stage: stage, options: options).reject{ |pm| pm.state == :failed }
    processed = parsed.map(&:tokens)
    tokens = type == :date ? processed.map(&:date_part_types) : processed.map(&:types)
    ex = parsed.map{ |pm| pm.orig_string }
    ex.zip(tokens)
  end
def parsed_example_tokens ( type : :all , stage : nil , tag : nil , options : { } ) parsed = parse_examples ( tag : tag , stage : stage , options : options ) . reject { | pm | pm . state == :failed } processed = parsed . map ( & :tokens ) tokens = type == :date ? processed . map ( & :date_part_types ) : processed . map ( & :types ) ex = parsed . map { | pm | pm . orig_string } ex . zip ( tokens ) end
stage should be a SegmentSet-holding instance variable of ProcessingManager
stage should be a SegmentSet - holding instance variable of ProcessingManager
type
<not_specific>
stage
<not_specific>
tag
<not_specific>
options
<not_specific>