From b17d19689ef8c42c95b31c116c1a89b7f3f907cf Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Wed, 18 Sep 2019 09:52:49 -0600 Subject: [PATCH] Formatting --- src/spectator/runnable_example.cr | 2 +- src/spectator/spec_builder.cr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spectator/runnable_example.cr b/src/spectator/runnable_example.cr index 2188d8a..2ee66f0 100644 --- a/src/spectator/runnable_example.cr +++ b/src/spectator/runnable_example.cr @@ -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 diff --git a/src/spectator/spec_builder.cr b/src/spectator/spec_builder.cr index 38110eb..25404a0 100644 --- a/src/spectator/spec_builder.cr +++ b/src/spectator/spec_builder.cr @@ -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)