class Cucumber::ExpandTableRowPrinter

Public Instance Methods

after() click to toggle source
# File lib/cucumber/formatter/legacy_api/adapter.rb, line 891
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
before() click to toggle source
# File lib/cucumber/formatter/legacy_api/adapter.rb, line 873
def before
  before_hook_results.accept(formatter)
  self
end
step_invocation(step_invocation, source) click to toggle source
# File lib/cucumber/formatter/legacy_api/adapter.rb, line 878
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

Private Instance Methods

print_scenario_name(step_invocation, table_row) click to toggle source