Class: Cucumber::Runtime::AfterHooks
- Inherits:
-
Object
- Object
- Cucumber::Runtime::AfterHooks
- Defined in:
- lib/cucumber/runtime/after_hooks.rb
Instance Method Summary collapse
- #apply_to(test_case) ⇒ Object
-
#initialize(hooks, scenario) ⇒ AfterHooks
constructor
A new instance of AfterHooks.
Constructor Details
#initialize(hooks, scenario) ⇒ AfterHooks
Returns a new instance of AfterHooks.
5 6 7 8 |
# File 'lib/cucumber/runtime/after_hooks.rb', line 5 def initialize(hooks, scenario) @hooks = hooks @scenario = scenario end |
Instance Method Details
#apply_to(test_case) ⇒ Object
10 11 12 13 14 |
# File 'lib/cucumber/runtime/after_hooks.rb', line 10 def apply_to(test_case) test_case.with_steps( test_case.test_steps + after_hooks(test_case.source).reverse ) end |