Class: Cucumber::Events::TestStepCreated

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

Overview

Event fired when a TestStep is created from a PickleStep

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, pickle_step) ⇒ TestStepCreated

Returns a new instance of TestStepCreated.



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

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

Instance Attribute Details

#pickle_stepObject (readonly)

Returns the value of attribute pickle_step.



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

def pickle_step
  @pickle_step
end

#test_stepObject (readonly)

Returns the value of attribute test_step.



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

def test_step
  @test_step
end

Class Method Details

.event_idObject



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

def self.event_id
  :test_step_created
end