class Cucumber::Ast::Background
def accept(visitor)
def accept(visitor) return if Cucumber.wants_to_quit init visitor.visit_comment(@comment) unless @comment.empty? visitor.visit_background_name(@keyword, name, file_colon_line(@line), source_indent(first_line_length)) with_visitor(hook_context, visitor) do visitor.step_mother.before(hook_context) skip_invoke! if failed? visitor.visit_steps(@step_invocations) @failed = @step_invocations.detect{|step_invocation| step_invocation.exception || step_invocation.status != :passed } visitor.step_mother.after(hook_context) if @failed || @feature_elements.empty? end end