mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Explicit initializer with sample values
Not sure why it isn't getting the one from the module.
This commit is contained in:
parent
a59e38155e
commit
43440d37b0
1 changed files with 7 additions and 0 deletions
|
@ -511,6 +511,13 @@ module Spectator::DSL
|
||||||
# Include the parent module.
|
# Include the parent module.
|
||||||
include {{@type.id}}
|
include {{@type.id}}
|
||||||
|
|
||||||
|
# Placeholder initializer.
|
||||||
|
# This is needed because examples and groups call super in their initializer.
|
||||||
|
# Those initializers pass the sample values upward through their hierarchy.
|
||||||
|
def initialize(_sample_values : ::Spectator::Internals::SampleValues)
|
||||||
|
super
|
||||||
|
end
|
||||||
|
|
||||||
# Method that returns an array containing the collection.
|
# Method that returns an array containing the collection.
|
||||||
# This method should be called only once.
|
# This method should be called only once.
|
||||||
# The framework stores the collection as an array for a couple of reasons.
|
# The framework stores the collection as an array for a couple of reasons.
|
||||||
|
|
Loading…
Reference in a new issue