mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix locals not being passed to child groups
This commit is contained in:
parent
a9d4acda36
commit
66ca06337d
3 changed files with 3 additions and 3 deletions
|
@ -167,7 +167,7 @@ module Spectator
|
|||
end
|
||||
|
||||
class Factory%example < ::Spectator::ExampleFactory
|
||||
def build(locals = {} of Symbol => ValueWrapper)
|
||||
def build(locals : Hash(Symbol, ValueWrapper))
|
||||
Example%example.new(locals)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Spectator
|
||||
abstract class ExampleFactory
|
||||
abstract def build : Example
|
||||
abstract def build(locals : Hash(Symbol, ValueWrapper)) : Example
|
||||
end
|
||||
end
|
||||
|
|
|
@ -42,7 +42,7 @@ module Spectator
|
|||
if child.is_a?(ExampleFactory)
|
||||
array << child.build(locals)
|
||||
else
|
||||
array.concat(child.all_examples)
|
||||
array.concat(child.all_examples(locals))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue