Closed alex-tan closed 1 year ago
Nice catch @alex-tan, I've taken the idea of this and wrapped it up in a more general mechanism to tear down the handlers the method puts in place: https://github.com/samuelgiles/rspec-sorbet/pull/27
Closing through https://github.com/samuelgiles/rspec-sorbet/pull/27
It results in a.
I haven't figured out why this is occurring in one of our large code bases but somehow RSpec::Sorbet.allow_doubles! is being called again when Guard runs RSpec after the first time.
It results in this over and over until a SystemStackError is raised when a signature is incorrect:
I've tested this code out and it fixes the issue for us.