lib/cucumber/ast/scenario_outline.rb in cucumber-0.2.3 vs lib/cucumber/ast/scenario_outline.rb in cucumber-0.3.0

- old
+ new

@@ -28,28 +28,18 @@ def feature=(feature) @feature = feature @background.feature = feature if @background end - def descend?(visitor) - @examples_array.detect { |examples| examples.descend?(visitor) } - end - - def matches_tags_and_name?(visitor) - visitor.included_by_tags?(self) && - !visitor.excluded_by_tags?(self) && - visitor.matches_scenario_names?(self) - end - def accept(visitor) visitor.visit_comment(@comment) visitor.visit_tags(@tags) visitor.visit_scenario_name(@keyword, @name, file_colon_line(@line), source_indent(text_length)) visitor.visit_steps(@steps) skip_invoke! if @background && @background.failed? @examples_array.each do |examples| - visitor.visit_examples(examples) if examples.descend?(visitor) + visitor.visit_examples(examples) end end def skip_invoke! @examples_array.each{|examples| examples.skip_invoke!}