diff --git a/src/spectator/dsl/given_example_group_builder.cr b/src/spectator/dsl/given_example_group_builder.cr index c174e29..3346219 100644 --- a/src/spectator/dsl/given_example_group_builder.cr +++ b/src/spectator/dsl/given_example_group_builder.cr @@ -15,7 +15,7 @@ module Spectator::DSL end private def build_sub_group(parent : ExampleGroup, sample_values : Internals::SampleValues, value : T) : NestedExampleGroup - sub_values = sample_values.add(@symbol, @symbol.to_s, value) + sub_values = sample_values.add(@symbol, @symbol.to_s, value) # TODO: Use real name instead of symbol as string. NestedExampleGroup.new(value.to_s, parent, ExampleHooks.empty).tap do |group| group.children = @children.map do |child| child.build(group, sub_values).as(ExampleComponent)