Class: Cucumber::Core::Events::TestStepStarted

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

Overview

Signals that a Test::Step is about to be executed

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) ⇒ TestStepStarted

Returns a new instance of TestStepStarted.



17
18
19
20
# File 'lib/cucumber/core/events/test_step_started.rb', line 17

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

Instance Attribute Details

#test_stepCucumber::Core::Test::Step (readonly)

Returns the test step to be executed.

Returns:



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

def test_step
  @test_step
end

Class Method Details

.event_idObject



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

def self.event_id
  :test_step_started
end