Formatting

This commit is contained in:
Michael Miller 2019-09-18 09:52:49 -06:00
parent db3f89731c
commit b17d19689e
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ module Spectator
result.elapsed = Time.measure do
begin
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
end
end

View file

@ -43,7 +43,7 @@ module Spectator
# The class name of the example should be passed as an argument.
# The example will be instantiated later.
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) }
factory = ExampleBuilder.new(description, source, builder, runner)
@@stack.current.add_child(factory)