lib/cucumber/ast/step_collection.rb in cucumber-0.4.3 vs lib/cucumber/ast/step_collection.rb in cucumber-0.4.4
- old
+ new
@@ -8,10 +8,10 @@
@steps = steps
@steps.each{|step| step.step_collection = self}
end
def accept(visitor, &proc)
- return if $cucumber_interrupted
+ return if Cucumber.wants_to_quit
@steps.each do |step|
visitor.visit_step(step) if proc.nil? || proc.call(step)
end
end