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?(regexp_to_match) ⇒ Boolean
- #outline_at_line?(line) ⇒ Boolean
- #outline_matches_name?(regexp_to_match) ⇒ Boolean
Instance Method Details
#at_line?(line) ⇒ Boolean
813 814 815 816 817 |
# File 'lib/cucumber/parser/feature.rb', line 813 def at_line?(line) outline_at_line?(line) || examples_sections.at_line?(line) || .at_line?(line) end |
#build(background, filter) ⇒ Object
837 838 839 840 841 842 843 844 845 846 847 848 |
# File 'lib/cucumber/parser/feature.rb', line 837 def build(background, filter) Ast::ScenarioOutline.new( background, comment.build, .build, scenario_outline_keyword.line, scenario_outline_keyword.text_value, name.build, steps.build, examples_sections.build(filter, self) ) end |
#has_tags?(tag_names) ⇒ Boolean
824 825 826 827 |
# File 'lib/cucumber/parser/feature.rb', line 824 def (tag_names) = self.parent.parent. .(tag_names) || .(tag_names) end |
#matches_name?(regexp_to_match) ⇒ Boolean
829 830 831 |
# File 'lib/cucumber/parser/feature.rb', line 829 def matches_name?(regexp_to_match) outline_matches_name?(regexp_to_match) || examples_sections.matches_name?(regexp_to_match) end |
#outline_at_line?(line) ⇒ Boolean
819 820 821 822 |
# File 'lib/cucumber/parser/feature.rb', line 819 def outline_at_line?(line) scenario_outline_keyword.line == line || steps.at_line?(line) end |
#outline_matches_name?(regexp_to_match) ⇒ Boolean
833 834 835 |
# File 'lib/cucumber/parser/feature.rb', line 833 def outline_matches_name?(regexp_to_match) name.build =~ regexp_to_match end |