mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Formatting
This commit is contained in:
parent
db3f89731c
commit
b17d19689e
2 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ module Spectator
|
||||||
result.elapsed = Time.measure do
|
result.elapsed = Time.measure do
|
||||||
begin
|
begin
|
||||||
test_wrapper.run # Actually run the example code.
|
test_wrapper.run # Actually run the example code.
|
||||||
rescue ex # Catch all errors and handle them later.
|
rescue ex # Catch all errors and handle them later.
|
||||||
result.error = ex
|
result.error = ex
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -43,7 +43,7 @@ module Spectator
|
||||||
# The class name of the example should be passed as an argument.
|
# The class name of the example should be passed as an argument.
|
||||||
# The example will be instantiated later.
|
# The example will be instantiated later.
|
||||||
def add_example(description : String, source : Source,
|
def add_example(description : String, source : Source,
|
||||||
example_type : ::SpectatorTest.class, &runner : ::SpectatorTest ->) : Nil
|
example_type : ::SpectatorTest.class, &runner : ::SpectatorTest ->) : Nil
|
||||||
builder = ->{ example_type.new.as(::SpectatorTest) }
|
builder = ->{ example_type.new.as(::SpectatorTest) }
|
||||||
factory = ExampleBuilder.new(description, source, builder, runner)
|
factory = ExampleBuilder.new(description, source, builder, runner)
|
||||||
@@stack.current.add_child(factory)
|
@@stack.current.add_child(factory)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue