Can you check to see if minitest's `capture_io` will solve the problem?
https://github.com/seattlerb/minitest/blob/master/lib/minitest/unit.rb#L447-460
If not, can you write a small example (outside rails) to demonstrate the
problem? This sounds like something we might want to push up to
minitest if possible.
Thanks Aaron for reply I write a gist for these cases, here you are https://gist.github.com/3694068
The new method, captures all descriptors, but I’m not sure about replacement original method.
G_Sobrinho
(G. Sobrinho)
September 11, 2012, 1:24pm
4
Dmitry,
I commented in your gist to use the StringIO instead of Tempfile to avoid IO on disk.