rspec-support icon indicating copy to clipboard operation
rspec-support copied to clipboard

Switch rspec local data to a thread accessor

Open JonRowe opened this issue 1 year ago • 0 comments

Originally suggested to fix #580 I turned this down because of waryness over patching thread, but given the conversation about mocking in #605 and #606 I think this is a better solution than capturing methods and other overly complicated solutions.

Additionally we patch in an alias for Thread.current to protect access to that when mocked.

JonRowe avatar Jul 17 '24 11:07 JonRowe