Formatting

This commit is contained in:
Michael Miller 2018-09-27 17:50:50 -06:00
parent b9abdb86ff
commit 7484b92db9
7 changed files with 7 additions and 9 deletions

View file

@ -2,7 +2,6 @@ require "./example_group_builder"
module Spectator::DSL
class GivenExampleGroupBuilder(T) < ExampleGroupBuilder
def initialize(what : String, @collection : Array(T), @symbol : Symbol)
super(what)
end

View file

@ -2,7 +2,6 @@ require "../example_group"
module Spectator::DSL
module StructureDSL
def initialize(sample_values : Internals::SampleValues)
end

View file

@ -15,7 +15,8 @@ module Spectator
@before_each : Array(->),
@after_all : Array(->),
@after_each : Array(->),
@around_each : Array(Proc(Nil) ->))
@around_each : Array(Proc(Nil) ->)
)
end
def run_before_all

View file

@ -14,7 +14,7 @@ module Spectator::Internals
def add(id : Symbol, name : String, value : T) : SampleValues forall T
wrapper = TypedValueWrapper(T).new(value)
SampleValues.new(@values.merge({
id => Entry.new(name, wrapper)
id => Entry.new(name, wrapper),
}))
end

View file

@ -2,7 +2,6 @@ require "./example"
module Spectator
abstract class RunnableExample < Example
def run
result = ResultCapture.new
group.run_before_all_hooks