Class: 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.
4 5 6 |
# File 'lib/cucumber/runtime/step_hooks.rb', line 4 def initialize(hooks) @hooks = hooks end |
Instance Method Details
#apply(test_steps) ⇒ Object
8 9 10 11 12 |
# File 'lib/cucumber/runtime/step_hooks.rb', line 8 def apply(test_steps) test_steps.flat_map do |test_step| [test_step] + after_step_hooks(test_step) end end |