From: Alex Gutteridge Date: 2007-07-02T16:10:11+09:00 Subject: Testing for warnings Is there a way of asserting that a warning is raised in a unit test? So I could write something like: assert_warns "Blah blah" do function_that_warns(foo) end I can't seem to find anything in the test/unit docs, but it seems like something that would be relatively common to test for... Alex Gutteridge Bioinformatics Center Kyoto University