Remove redundant #add_child method

This commit is contained in:
Michael Miller 2018-10-30 16:21:19 -06:00
parent eb8ce6ff92
commit ee4623b471

View file

@ -3,10 +3,6 @@ module Spectator::DSL
def initialize(@what : String) def initialize(@what : String)
end end
def add_child(child : Child) : Nil
@children << child
end
def build(parent : ExampleGroup, sample_values : Internals::SampleValues) : NestedExampleGroup def build(parent : ExampleGroup, sample_values : Internals::SampleValues) : NestedExampleGroup
NestedExampleGroup.new(@what, parent, hooks).tap do |group| NestedExampleGroup.new(@what, parent, hooks).tap do |group|
group.children = @children.map do |child| group.children = @children.map do |child|