lib/cucumber/ast/scenario_outline.rb in cucumber-0.3.90 vs lib/cucumber/ast/scenario_outline.rb in cucumber-0.3.91
- old
+ new
@@ -3,10 +3,11 @@
class ScenarioOutline
include FeatureElement
module ExamplesArray
def accept(visitor)
+ return if $cucumber_interrupted
each do |examples|
visitor.visit_examples(examples)
end
end
end
@@ -35,9 +36,10 @@
@background.feature_elements << self if @background
end
def accept(visitor)
+ return if $cucumber_interrupted
visitor.visit_comment(@comment) unless @comment.empty?
visitor.visit_tags(@tags)
visitor.visit_scenario_name(@keyword, @name, file_colon_line(@line), source_indent(first_line_length))
visitor.visit_steps(@steps)