From f7fe17768550db8394dd73e2209d860623a66d8e Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 7 Nov 2020 15:01:08 -0700 Subject: [PATCH] Minor adjustments --- src/spectator/example.cr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spectator/example.cr b/src/spectator/example.cr index 2f435e6..56238e6 100644 --- a/src/spectator/example.cr +++ b/src/spectator/example.cr @@ -42,9 +42,8 @@ module Spectator # The result will also be stored in `#result`. def run : Result runner = Runner.new(self, @delegate) - @result = runner.run - ensure @finished = true + @result = runner.run end # Exposes information about the example useful for debugging. @@ -63,7 +62,8 @@ module Spectator io << result end - # Responsible for executing example code and reporting results. + # Logic dedicated to running an example and necessary hooks. + # This type does not directly modify or mutate state in the `Example` class. private struct Runner # Creates the runner. # *example* is the example being tested.