Navya Amerineni
3/20/2006 5:30:00 AM
Hi all,
I am running a test case and need it capture the output it gives me.
require 'stringio'
old_stdout = $stdout
$stdout = StringIO.new
............
@reqout = $stdout.string
$stdout = old_stdout
the above code captures the stdout if something written explicily (like puts).
but it doesnot capture the output or running a testcase.
i want to capture the results if the testcases.
is there a way it could be done.
Thanks,
Navya.
---------------------------------
Yahoo! Mail
Use Photomail to share photos without annoying attachments.