Method: Cucumber::Runtime::SupportCode#apply_after_hooks
- Defined in:
- lib/cucumber/runtime/support_code.rb
permalink #apply_after_hooks(test_case) ⇒ Object
[View source] [View on GitHub]
119 120 121 122 123 124 125 |
# File 'lib/cucumber/runtime/support_code.rb', line 119 def apply_after_hooks(test_case) return test_case if test_case.test_steps.empty? scenario = RunningTestCase.new(test_case) hooks = registry.hooks_for(:after, scenario) AfterHooks.new(@configuration.id_generator, hooks, scenario, @configuration.event_bus).apply_to(test_case) end |