From: Avi Bryant Date: 2001-03-17T18:34:06+09:00 Subject: [ruby-talk:12764] Re: assert_exception question On Sat, 17 Mar 2001, Pat Eyler wrote: > class TestExcept < RUNIT::TestCase > def testExcept > err = assert_exception("RunTimeError","test failed") do ^^^^^^^^^^^^^ > RaiseExeption.new("this is an exception") > end > assert_equals("this is an exception",err.to_s) > end > end I think you want assert_exception(RuntimeError, "test failed")