Class: Flatware::Cucumber::Formatter

Inherits:
Object
  • Object
show all
Defined in:
lib/flatware/cucumber/formatter.rb

Defined Under Namespace

Classes: Checkpoint, Scenario

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Formatter

Returns a new instance of Formatter.



25
26
27
28
29
30
31
32
# File 'lib/flatware/cucumber/formatter.rb', line 25

def initialize(config)
  # FIXME: can we sneak the sink in through the config?
  config.on_event :test_case_finished, &method(:on_test_case_finished)
  config.on_event :test_step_finished, &method(:on_test_step_finished)
  config.on_event :test_run_finished,  &method(:on_test_run_finished)
  config.on_event :step_activated,     &method(:on_step_activated)
  reset
end