Module: Cucumber::Parser::Feature::ScenarioOutline1
- 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
- #outline_at_line?(line) ⇒ Boolean
Instance Method Details
#at_line?(line) ⇒ Boolean
803 804 805 806 807 |
# File 'lib/cucumber/parser/feature.rb', line 803 def at_line?(line) outline_at_line?(line) || examples_sections.at_line?(line) || .at_line?(line) end |
#build(background, filter) ⇒ Object
823 824 825 826 827 828 829 830 831 832 833 834 |
# File 'lib/cucumber/parser/feature.rb', line 823 def build(background, filter) Ast::ScenarioOutline.new( background, comment.build, .build, scenario_outline_keyword.line, scenario_outline_keyword.text_value, name.text_value, steps.build, examples_sections.build(filter, self) ) end |
#has_tags?(tag_names) ⇒ Boolean
814 815 816 817 |
# File 'lib/cucumber/parser/feature.rb', line 814 def (tag_names) = self.parent.parent. .(tag_names) || .(tag_names) end |
#matches_name?(name_to_match) ⇒ Boolean
819 820 821 |
# File 'lib/cucumber/parser/feature.rb', line 819 def matches_name?(name_to_match) name.text_value == name_to_match end |
#outline_at_line?(line) ⇒ Boolean
809 810 811 812 |
# File 'lib/cucumber/parser/feature.rb', line 809 def outline_at_line?(line) scenario_outline_keyword.line == line || steps.at_line?(line) end |