Re-add mocks to harness

This commit is contained in:
Michael Miller 2021-01-30 17:27:02 -07:00
parent 73985772b7
commit 3b5086c74b
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

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