Class: Cucumber::Distrib::Events::StepActivated

Inherits:
BaseTestStepEvent show all
Defined in:
lib/cucumber/distrib/events.rb

Overview

Object that mimic Cucumber::Event::StepActivated on Leader for reporters.

Instance Attribute Summary collapse

Attributes inherited from BaseTestStepEvent

#test_step

Instance Method Summary collapse

Methods inherited from Event

event_id, #metadata

Constructor Details

#initialize(event) ⇒ StepActivated

Returns a new instance of StepActivated.

Parameters:

  • event (Cucumber::Events::StepActivated)


324
325
326
327
# File 'lib/cucumber/distrib/events.rb', line 324

def initialize(event)
  super
  @step_match = StepMatch.new event.step_match
end

Instance Attribute Details

#step_matchObject (readonly)

Returns the value of attribute step_match.



321
322
323
# File 'lib/cucumber/distrib/events.rb', line 321

def step_match
  @step_match
end

Instance Method Details

#attributesObject



329
330
331
# File 'lib/cucumber/distrib/events.rb', line 329

def attributes
  [test_step, step_match]
end