Explicit initializer with sample values

Not sure why it isn't getting the one from the module.
This commit is contained in:
Michael Miller 2019-08-17 07:59:32 -06:00
parent a59e38155e
commit 43440d37b0

View file

@ -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.