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(hooks) ⇒ StepHooks
constructor
A new instance of StepHooks.
Constructor Details
#initialize(hooks) ⇒ StepHooks
Returns a new instance of StepHooks.
5 6 7 |
# File 'lib/cucumber/runtime/step_hooks.rb', line 5 def initialize(hooks) @hooks = hooks end |
Instance Method Details
#apply(test_steps) ⇒ Object
9 10 11 12 13 |
# File 'lib/cucumber/runtime/step_hooks.rb', line 9 def apply(test_steps) test_steps.flat_map do |test_step| [test_step] + after_step_hooks(test_step) end end |