Class: Cucumber::Events::HookTestStepCreated

Inherits:
Base
  • Object
show all
Defined in:
lib/cucumber/events/hook_test_step_created.rb

Overview

Event fired when a step is created from a hook

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#event_id, #to_h

Constructor Details

#initialize(test_step, hook) ⇒ HookTestStepCreated

Returns a new instance of HookTestStepCreated.



15
16
17
18
19
# File 'lib/cucumber/events/hook_test_step_created.rb', line 15

def initialize(test_step, hook)
  @test_step = test_step
  @hook = hook
  super()
end

Instance Attribute Details

#hookObject (readonly)

Returns the value of attribute hook.



9
10
11
# File 'lib/cucumber/events/hook_test_step_created.rb', line 9

def hook
  @hook
end

#test_stepObject (readonly)

Returns the value of attribute test_step.



9
10
11
# File 'lib/cucumber/events/hook_test_step_created.rb', line 9

def test_step
  @test_step
end

Class Method Details

.event_idObject



11
12
13
# File 'lib/cucumber/events/hook_test_step_created.rb', line 11

def self.event_id
  :hook_test_step_created
end