Module: Cucumber::Parser::Feature::Scenario1
- Defined in:
- lib/cucumber/parser/feature.rb
Instance Method Summary collapse
- #at_line?(line) ⇒ Boolean
- #build(background, filter) ⇒ Object
- #has_tags?(tag_names) ⇒ Boolean
- #matches_name?(name_to_match) ⇒ Boolean
Instance Method Details
#at_line?(line) ⇒ Boolean
670 671 672 673 674 |
# File 'lib/cucumber/parser/feature.rb', line 670 def at_line?(line) scenario_keyword.line == line || steps.at_line?(line) || .at_line?(line) end |
#build(background, filter) ⇒ Object
685 686 687 688 689 690 691 692 693 694 695 |
# File 'lib/cucumber/parser/feature.rb', line 685 def build(background, filter) Ast::Scenario.new( background, comment.build, .build, scenario_keyword.line, scenario_keyword.text_value, name.text_value, steps.build ) end |
#has_tags?(tag_names) ⇒ Boolean
676 677 678 679 |
# File 'lib/cucumber/parser/feature.rb', line 676 def (tag_names) = self.parent.parent. .(tag_names) || .(tag_names) end |
#matches_name?(name_to_match) ⇒ Boolean
681 682 683 |
# File 'lib/cucumber/parser/feature.rb', line 681 def matches_name?(name_to_match) name.text_value == name_to_match end |