Capture sample values for tests

This commit is contained in:
Michael Miller 2018-11-01 20:23:28 -06:00
parent aea324a33b
commit 8e7f5cf82b
1 changed files with 8 additions and 0 deletions

View File

@ -73,6 +73,14 @@ class SpyExample < Spectator::RunnableExample
"SPY"
end
# Captures the sample values when the example is created.
def initialize(group, @sample_values)
super(group, @sample_values)
end
# Sample values given to the example.
getter sample_values : Spectator::Internals::SampleValues
setter block : Proc(Nil)? = nil
# Method called by the framework to run the example code.