Class: Cucumber::Distrib::Events::HookTestStepCreated
- Defined in:
- lib/cucumber/distrib/events.rb
Overview
Object that mimic Cucumber::Event::HookTestStepCreated on Leader for reporters.
Instance Attribute Summary collapse
-
#hook ⇒ Object
readonly
Returns the value of attribute hook.
-
#test_step ⇒ Object
readonly
Returns the value of attribute test_step.
Instance Method Summary collapse
-
#initialize(event) ⇒ HookTestStepCreated
constructor
A new instance of HookTestStepCreated.
Methods inherited from Event
Constructor Details
#initialize(event) ⇒ HookTestStepCreated
Returns a new instance of 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
#hook ⇒ Object (readonly)
Returns the value of attribute hook.
212 213 214 |
# File 'lib/cucumber/distrib/events.rb', line 212 def hook @hook end |
#test_step ⇒ Object (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 |