mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Minor adjustments
This commit is contained in:
parent
8ae6ef478b
commit
f7fe177685
1 changed files with 3 additions and 3 deletions
|
@ -42,9 +42,8 @@ module Spectator
|
||||||
# The result will also be stored in `#result`.
|
# The result will also be stored in `#result`.
|
||||||
def run : Result
|
def run : Result
|
||||||
runner = Runner.new(self, @delegate)
|
runner = Runner.new(self, @delegate)
|
||||||
@result = runner.run
|
|
||||||
ensure
|
|
||||||
@finished = true
|
@finished = true
|
||||||
|
@result = runner.run
|
||||||
end
|
end
|
||||||
|
|
||||||
# Exposes information about the example useful for debugging.
|
# Exposes information about the example useful for debugging.
|
||||||
|
@ -63,7 +62,8 @@ module Spectator
|
||||||
io << result
|
io << result
|
||||||
end
|
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
|
private struct Runner
|
||||||
# Creates the runner.
|
# Creates the runner.
|
||||||
# *example* is the example being tested.
|
# *example* is the example being tested.
|
||||||
|
|
Loading…
Reference in a new issue