Sha256: fea17ba631f96200d77309fa871d06910659c6238eade2086bbadd97e507edfb
Contents?: true
Size: 464 Bytes
Versions: 5
Compression:
Stored size: 464 Bytes
Contents
module Cucumber class Runtime class AfterHooks def initialize(action_blocks) @action_blocks = action_blocks end def apply_to(test_case) test_case.with_steps( test_case.test_steps + after_hooks(test_case.source) ) end private def after_hooks(source) @action_blocks.map do |action_block| Hooks.after_hook(source, &action_block) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems