lib/gurke/step.rb in gurke-2.0.0 vs lib/gurke/step.rb in gurke-2.0.1

- old
+ new

@@ -43,11 +43,11 @@ reporter.invoke :before_step, self, scenario result = runner.hook(:step, world) do run_step runner, reporter, scenario, world end - ensure + reporter.invoke :after_step, result, scenario end private @@ -56,10 +56,10 @@ result = find_and_run_step runner, scenario, world rescue StepPending => e scenario.pending! e result = StepResult.new self, :pending, e - rescue => e + rescue Exception => e scenario.failed! e result = StepResult.new self, :failed, e ensure reporter.invoke :end_step, result, scenario end