mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Capture sample values for tests
This commit is contained in:
parent
aea324a33b
commit
8e7f5cf82b
1 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue