From 3b5086c74bc58d1318ee0606cd2ad89cd2418641 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 30 Jan 2021 17:27:02 -0700 Subject: [PATCH] Re-add mocks to harness --- src/spectator/harness.cr | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/spectator/harness.cr b/src/spectator/harness.cr index 6cfd8dc..44bc321 100644 --- a/src/spectator/harness.cr +++ b/src/spectator/harness.cr @@ -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.