Sha256: 40c227231dd2e9c80eb5e56f3781240734b376f45be7c731db1f3f444b4874c7
Contents?: true
Size: 532 Bytes
Versions: 5
Compression:
Stored size: 532 Bytes
Contents
module Cucumber class Runtime class StepHooks def initialize(hooks) @hooks = hooks end def apply(test_steps) test_steps.flat_map do |test_step| [test_step] + after_step_hooks(test_step) end end private def after_step_hooks(test_step) @hooks.map do |hook| action = ->(*args) { hook.invoke('AfterStep', [args, test_step]) } Hooks.after_step_hook(test_step.source, hook.location, &action) end end end end end
Version data entries
5 entries across 5 versions & 2 rubygems