Sha256: 2c2c9dfcd4994d5bd1cbe3019757a60fdfcee2a3bacd28039f628ef0da07b997
Contents?: true
Size: 526 Bytes
Versions: 1
Compression:
Stored size: 526 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) } Hooks.after_step_hook(test_step.source, Hooks.location(hook), &action) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber-2.0.1 | lib/cucumber/runtime/step_hooks.rb |