From: "Gray, Jeff" Date: 2002-08-17T04:41:43+09:00 Subject: Using Test::Unit to assert messages appeared on $stdout/$stderr I'm sorta new to the whole unit testing thing, and my only prior exposure to software testing is using DejaGnu/Expect. I'm just starting to use Test::Unit, and I have a case where a certain action should produce a warning message. There is no other side effect that can be tested to make sure the condition that produced the warning was indeed exercised properly, just the appearance of the message. I don't see any obvious assertion in Test::Unit that allows checking of I/O to $stdout/$stderr. What's a good way to test for such a case? Thanks, - jeff