From 76dd5603de644b7c14d43f382d6a668f55c4fdf8 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 29 May 2021 17:13:14 -0600 Subject: [PATCH] Fix harness not updating current --- src/spectator/harness.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spectator/harness.cr b/src/spectator/harness.cr index 27b2679..f865f4d 100644 --- a/src/spectator/harness.cr +++ b/src/spectator/harness.cr @@ -55,7 +55,7 @@ module Spectator private def self.with_harness previous = @@current begin - harness = new + @@current = harness = new yield harness ensure @@current = previous