Class: Cucumber::Formatter::LegacyApi::Adapter::HeaderTableRowPrinter

Inherits:
TableRowPrinterBase
  • Object
show all
Defined in:
lib/cucumber/formatter/legacy_api/adapter.rb

Instance Method Summary collapse

Methods inherited from TableRowPrinterBase

#after_step_hook, #after_test_case

Methods included from PrintsAfterHooks

#after_hook, #after_hook_results

Instance Method Details

#afterObject


821
822
823
824
825
826
827
828
829
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 821

def after
  node.values.each do |value|
    formatter.before_table_cell(value)
    formatter.table_cell_value(value, :skipped_param)
    formatter.after_table_cell(value)
  end
  formatter.after_table_row(legacy_table_row)
  self
end

#beforeObject


815
816
817
818
819
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 815

def before
  Ast::Comments.new(node.comments).accept(formatter)
  formatter.before_table_row(node)
  self
end

#legacy_table_rowObject


811
812
813
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 811

def legacy_table_row
  Ast::ExampleTableRow.new(exception, @status, node.values, node.location, Ast::NullLanguage.new)
end