Capture sample values for tests

This commit is contained in:
Michael Miller 2018-11-01 20:23:28 -06:00
parent aea324a33b
commit 8e7f5cf82b

View file

@ -73,6 +73,14 @@ class SpyExample < Spectator::RunnableExample
"SPY" "SPY"
end 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 setter block : Proc(Nil)? = nil
# Method called by the framework to run the example code. # Method called by the framework to run the example code.