From: John Wilger Date: 2006-09-10T04:38:29+09:00 Subject: Re: Unit test an output with puts On 9/8/06, Eric Hodel wrote: > Use util_capture from the ZenTest gem. You get two StringIO objects > back from calling util_capture that hold the contents of $stdout and > $stderr in the block: > out, err = util_capture do > Foo.new.output > end Nice. Does this also prevent the output from being dumped to the console during the test? -- Regards, John Wilger http://johnwilger.com ----------- Alice came to a fork in the road. "Which road do I take?" she asked. "Where do you want to go?" responded the Cheshire cat. "I don't know," Alice answered. "Then," said the cat, "it doesn't matter." - Lewis Carrol, Alice in Wonderland