Minor adjustments

This commit is contained in:
Michael Miller 2020-11-07 15:01:08 -07:00
parent 8ae6ef478b
commit f7fe177685
No known key found for this signature in database
GPG key ID: F9A0C5C65B162436

View file

@ -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.