mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Concat #all_examples instead of recursive #add_examples
This commit is contained in:
parent
4d601281f6
commit
aaf973b8cf
1 changed files with 2 additions and 2 deletions
|
@ -95,12 +95,12 @@ module Spectator
|
|||
-> { inner.call(wrapper) }
|
||||
end
|
||||
|
||||
protected def add_examples(array : Array(Example))
|
||||
def add_examples(array : Array(Example))
|
||||
@children.each do |child|
|
||||
if child.is_a?(ExampleFactory)
|
||||
array << child.build
|
||||
else
|
||||
child.add_examples(array)
|
||||
array.concat(child.all_examples)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue