mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Re-add mocks to harness
This commit is contained in:
parent
73985772b7
commit
3b5086c74b
1 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
require "./error_result"
|
||||
require "./expectation"
|
||||
require "./mocks"
|
||||
require "./pass_result"
|
||||
require "./result"
|
||||
|
||||
|
@ -35,6 +36,8 @@ module Spectator
|
|||
# Retrieves the harness for the current running example.
|
||||
class_getter! current : self
|
||||
|
||||
getter mocks = Mocks::Registry.new
|
||||
|
||||
# Wraps an example with a harness and runs test code.
|
||||
# A block provided to this method is considered to be the test code.
|
||||
# The value of `.current` is set to the harness for the duration of the test.
|
||||
|
|
Loading…
Reference in a new issue