lib/cucumber/runtime/step_hooks.rb in cucumber-3.1.0 vs lib/cucumber/runtime/step_hooks.rb in cucumber-3.1.1

- old
+ new

@@ -1,6 +1,7 @@ # frozen_string_literal: true + module Cucumber class Runtime class StepHooks def initialize(hooks) @hooks = hooks @@ -11,9 +12,10 @@ [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