mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Grammar
This commit is contained in:
parent
d612657b15
commit
0b2ea79329
1 changed files with 3 additions and 3 deletions
|
@ -20,18 +20,18 @@ module Spectator
|
||||||
# One of those is testing Spectator.
|
# One of those is testing Spectator.
|
||||||
class_property? autorun = true
|
class_property? autorun = true
|
||||||
|
|
||||||
# All tests are ran just before the executable exits.
|
# All tests run just before the executable exits.
|
||||||
# Tests will be skipped, however, if `#autorun?` is set to false.
|
# Tests will be skipped, however, if `#autorun?` is set to false.
|
||||||
# There are a couple of reasons for this.
|
# There are a couple of reasons for this.
|
||||||
#
|
#
|
||||||
# First is that we want a clean interface for the end-user.
|
# First is that we want a clean interface for the end-user.
|
||||||
# They shouldn't need to call a "run" method.
|
# They shouldn't need to call a "run" method.
|
||||||
# That adds the burden on the developer to ensure the tests are run after they are created.
|
# That adds burden on the developer to ensure the tests run after they are created.
|
||||||
# And that gets complicated when there are multiple files that could run in any order.
|
# And that gets complicated when there are multiple files that could run in any order.
|
||||||
#
|
#
|
||||||
# Second is to allow all of the tests and framework to be constructed.
|
# Second is to allow all of the tests and framework to be constructed.
|
||||||
# We know that all of the instances and DSL builders have finished
|
# We know that all of the instances and DSL builders have finished
|
||||||
# after the main part of the executable has run.
|
# after the main part of the executable has completed.
|
||||||
#
|
#
|
||||||
# By doing this, we provide a clean interface and safely run after everything is constructed.
|
# By doing this, we provide a clean interface and safely run after everything is constructed.
|
||||||
# The downside, if something bad happens, like an exception is raised,
|
# The downside, if something bad happens, like an exception is raised,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue