From: Pat Eyler Date: 2001-03-18T03:53:52+09:00 Subject: [ruby-talk:12782] Re: assert_exception question On Sat, 17 Mar 2001, Avi Bryant wrote: > > > 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") I tried it both ways and got the same error. -pate > >