lib/gurke/configuration.rb in gurke-3.3.4 vs lib/gurke/configuration.rb in gurke-3.3.5

- old
+ new

@@ -89,11 +89,11 @@ hooks = { features: HookSet.new, feature: HookSet.new, scenario: HookSet.new, step: HookSet.new, - system: HookSet.new + system: HookSet.new, } hooks[:each] = hooks[:scenario] hooks end @@ -150,14 +150,12 @@ @around.reduce Context.new(context, block) do |c, e| Context.new(context, -> { e.run world, c }) end.call ensure @after.each do |hook| - begin - hook.run world, ctx - rescue StandardError => e - warn "Rescued error in after hook: #{e}\n#{e.backtrace.join("\n")}" - end + hook.run world, ctx + rescue StandardError => e + warn "Rescued error in after hook: #{e}\n#{e.backtrace.join("\n")}" end end class Context extend Forwardable