Remove redundant #add_child method
This commit is contained in:
parent
eb8ce6ff92
commit
ee4623b471
|
@ -3,10 +3,6 @@ module Spectator::DSL
|
|||
def initialize(@what : String)
|
||||
end
|
||||
|
||||
def add_child(child : Child) : Nil
|
||||
@children << child
|
||||
end
|
||||
|
||||
def build(parent : ExampleGroup, sample_values : Internals::SampleValues) : NestedExampleGroup
|
||||
NestedExampleGroup.new(@what, parent, hooks).tap do |group|
|
||||
group.children = @children.map do |child|
|
||||
|
|
Loading…
Reference in New Issue