From: Mat Schaffer Date: 2006-06-16T23:19:40+09:00 Subject: Re: Testing and STDOUT On Jun 16, 2006, at 10:09 AM, Mike Nelson wrote: > I have a question with using Test::Unit::TestCase / RSpec (probably > applies to both I think). I would like to test the output to STDOUT > from > the code that I'm testing as well as the results from it. Is there a > prefered way to go about this? Somehow directing STDOUT somewhere...? setting $stdio to a StringIO seems to be pretty productive. -mat