mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Distinguish group variables
This commit is contained in:
parent
24eb5e419a
commit
5f3c9d2f63
1 changed files with 3 additions and 3 deletions
|
@ -6,9 +6,9 @@ module Spectator::SpecBuilder
|
|||
def initialize(@what : String | Symbol)
|
||||
end
|
||||
|
||||
def build(group)
|
||||
context = TestContext.new(group.context, build_hooks)
|
||||
NestedExampleGroup.new(@what, group, context).tap do |group|
|
||||
def build(parent_group)
|
||||
context = TestContext.new(parent_group.context, build_hooks)
|
||||
NestedExampleGroup.new(@what, parent_group, context).tap do |group|
|
||||
group.children = children.map do |child|
|
||||
child.build(group).as(ExampleComponent)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue