Method: Cucumber::Runtime::SupportCode#find_around_hooks
- Defined in:
- lib/cucumber/runtime/support_code.rb
permalink #find_around_hooks(test_case) ⇒ Object
[View source] [View on GitHub]
127 128 129 130 131 132 133 134 135 |
# File 'lib/cucumber/runtime/support_code.rb', line 127 def find_around_hooks(test_case) scenario = RunningTestCase.new(test_case) registry.hooks_for(:around, scenario).map do |hook| Hooks.around_hook do |run_scenario| hook.invoke('Around', scenario, &run_scenario) end end end |