rspec-expectations
rspec-expectations copied to clipboard
Improve the output matcher to make it thread safe
The current output matcher is not considered thread safe.
Rails had a similar feature capture
and silence
which were both recently deprecated. This caused issues with the ammeter gem which relied on those methods. The patch applied there was near identical to how the output
matcher works. Based on feedback this is not considered thread safe either.