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 module Spectator::DSL
class GivenExampleGroupBuilder(T) < ExampleGroupBuilder class GivenExampleGroupBuilder(T) < ExampleGroupBuilder
def initialize(what : String, @collection : Array(T), @symbol : Symbol) def initialize(what : String, @collection : Array(T), @symbol : Symbol)
super(what) super(what)
end end

View file

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

View file

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

View file

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

View file

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