Fix harness not updating current

This commit is contained in:
Michael Miller 2021-05-29 17:13:14 -06:00
parent 71d0af7cd5
commit 76dd5603de
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -55,7 +55,7 @@ module Spectator
private def self.with_harness
previous = @@current
begin
harness = new
@@current = harness = new
yield harness
ensure
@@current = previous