Class: Cucumber::Runtime::StepHooks
- Inherits:
-
Object
- Object
- Cucumber::Runtime::StepHooks
- Defined in:
- lib/cucumber/runtime/step_hooks.rb
Instance Method Summary collapse
- #apply(test_steps) ⇒ Object
-
#initialize(id_generator, hooks, event_bus) ⇒ StepHooks
constructor
A new instance of StepHooks.
Constructor Details
#initialize(id_generator, hooks, event_bus) ⇒ StepHooks
Returns a new instance of StepHooks.
6 7 8 9 10 |
# File '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/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 |