Module: Cucumber::Parser::Feature::Scenario1
- Defined in:
- lib/cucumber/parser/feature.rb
Instance Method Summary collapse
- #at_line?(line) ⇒ Boolean
- #build(background, filter) ⇒ Object
- #matches_name?(regexp_to_match) ⇒ Boolean
- #matches_tags?(tag_names) ⇒ Boolean
Instance Method Details
#at_line?(line) ⇒ Boolean
684 685 686 687 688 |
# File 'lib/cucumber/parser/feature.rb', line 684 def at_line?(line) scenario_keyword.line == line || steps.at_line?(line) || .at_line?(line) end |
#build(background, filter) ⇒ Object
700 701 702 703 704 705 706 707 708 709 710 |
# File 'lib/cucumber/parser/feature.rb', line 700 def build(background, filter) Ast::Scenario.new( background, comment.build, .build, scenario_keyword.line, scenario_keyword.text_value, name.build, steps.build ) end |
#matches_name?(regexp_to_match) ⇒ Boolean
696 697 698 |
# File 'lib/cucumber/parser/feature.rb', line 696 def matches_name?(regexp_to_match) name.build =~ regexp_to_match end |