rspec-support
rspec-support copied to clipboard
Switch rspec local data to a thread accessor
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.