Class: Cucumber::Events::StepActivated

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

Overview

Event fired when a step is activated

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, step_match) ⇒ StepActivated

Returns a new instance of StepActivated.



19
20
21
22
23
# File 'lib/cucumber/events/step_activated.rb', line 19

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

Instance Attribute Details

#step_matchObject (readonly)

Information about the matching definition.

@return [Cucumber::StepMatch]


13
14
15
# File 'lib/cucumber/events/step_activated.rb', line 13

def step_match
  @step_match
end

#test_stepObject (readonly)

The test step that was matched.

@return [Cucumber::Core::Test::Step]


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

def test_step
  @test_step
end

Class Method Details

.event_idObject



15
16
17
# File 'lib/cucumber/events/step_activated.rb', line 15

def self.event_id
  :step_activated
end