Class: Cucumber::Runtime::StepHooks

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/runtime/step_hooks.rb

Instance Method Summary collapse

Constructor Details

#initialize(id_generator, hooks, event_bus) ⇒ StepHooks

Returns a new instance of StepHooks.



6
7
8
9
10
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/runtime/step_hooks.rb', line 6

def initialize(id_generator, hooks, event_bus)
  @hooks = hooks
  @id_generator = id_generator
  @event_bus = event_bus
end

Instance Method Details

#apply(test_steps) ⇒ Object



12
13
14
15
16
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/runtime/step_hooks.rb', line 12

def apply(test_steps)
  test_steps.flat_map do |test_step|
    [test_step] + after_step_hooks(test_step)
  end
end