class Cucumber::Formatter::LegacyApi::Adapter::ExpandTableRowPrinter
def after
def after return if @done @child.after if @child @after_step_hook_result.accept(formatter) if @after_step_hook_result after_hook_results.accept(formatter) @done = true self end
def before
def before before_hook_results.accept(formatter) self end
def print_scenario_name(step_invocation, table_row)
def print_scenario_name(step_invocation, table_row) formatter.scenario_name table_row.keyword, table_row.name, node.location.to_s, step_invocation.indent.of(table_row) end
def step_invocation(step_invocation, source)
def step_invocation(step_invocation, source) result = source.step_result @table_row ||= legacy_table_row step_invocation.indent.record_width_of(@table_row) if !@scenario_name_printed print_scenario_name(step_invocation, @table_row) @scenario_name_printed = true end step_invocation.accept(formatter) @failed_step = step_invocation if result.status == :failed @status = step_invocation.status unless @status == :failed end