Class: Cucumber::Distrib::Events::HookTestStepCreated

Inherits:
Event
  • Object
show all
Defined in:
lib/cucumber/distrib/events.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Event

event_id, #metadata

Constructor Details

#initialize(event) ⇒ HookTestStepCreated

Returns a new instance of HookTestStepCreated.

Parameters:

  • event (Cucumber::Events::HookTestStepCreated)


215
216
217
218
219
# File 'lib/cucumber/distrib/events.rb', line 215

def initialize(event)
  super()
  @test_step = HookStep.new event.test_step.id
  @hook = Hook.new event.hook.id
end

Instance Attribute Details

#hookObject (readonly)

Returns the value of attribute hook.



212
213
214
# File 'lib/cucumber/distrib/events.rb', line 212

def hook
  @hook
end

#test_stepObject (readonly)

Returns the value of attribute test_step.



212
213
214
# File 'lib/cucumber/distrib/events.rb', line 212

def test_step
  @test_step
end