mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Ensure example is set to finished after running
This commit is contained in:
parent
1c5b46b981
commit
0706a9986c
1 changed files with 2 additions and 1 deletions
|
@ -22,8 +22,9 @@ module Spectator
|
|||
# An exception is raised if an attempt is made to run it more than once.
|
||||
def run : Result
|
||||
raise "Attempted to run example more than once (#{self})" if finished?
|
||||
@finished = true
|
||||
run_impl
|
||||
ensure
|
||||
@finished = true
|
||||
end
|
||||
|
||||
# Implementation-specific for running the example code.
|
||||
|
|
Loading…
Reference in a new issue