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)
|
def initialize(@what : String | Symbol)
|
||||||
end
|
end
|
||||||
|
|
||||||
def build(group)
|
def build(parent_group)
|
||||||
context = TestContext.new(group.context, build_hooks)
|
context = TestContext.new(parent_group.context, build_hooks)
|
||||||
NestedExampleGroup.new(@what, group, context).tap do |group|
|
NestedExampleGroup.new(@what, parent_group, context).tap do |group|
|
||||||
group.children = children.map do |child|
|
group.children = children.map do |child|
|
||||||
child.build(group).as(ExampleComponent)
|
child.build(group).as(ExampleComponent)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue