On Mon, Sep 10, 2012 at 08:56:12AM -0700, Dmitry Vorotilin wrote:
> Guys I want to ask you about current realization of method capture. There's
> a case in tests where I want to capture output in subprocess, current
> realization cannot do it because it doesn't reopen $std{out,err} and just
> reassign this value. I think that's enough for many cases, do we need
> another realization in reporting.rb? Or I can just place it in the tests.
> It related to
https://github.com/rails/rails/pull/7586
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.
--
Aaron Patterson
http://tenderlovemaking.com/