From 4ab97bd21565e69fc199b402741d7b71d0a4872d Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 20 Oct 2018 22:56:24 -0600 Subject: [PATCH] Group children must be set --- spec/spec_helper.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/spec_helper.cr b/spec/spec_helper.cr index 9a8a892..674e775 100644 --- a/spec/spec_helper.cr +++ b/spec/spec_helper.cr @@ -35,13 +35,14 @@ class SpyExample < Spectator::RunnableExample end end - # Creates the spy example. + # Creates a spy example. # The block passed to this method will be executed when the example runs. def self.create(&block) hooks = Spectator::ExampleHooks.empty group = Spectator::RootExampleGroup.new(hooks) values = Spectator::Internals::SampleValues.empty new(group, values).tap do |example| + group.children = [example.as(Spectator::ExampleComponent)] example.block = block end end