From: Dave Thomas Date: 2000-06-12T11:20:38-05:00 Subject: [ruby-talk:03315] Re: RubyUnit assert_raiseexception Robert Feldt writes: > Hi, > > Is there a better way in RubyUnit to check that a method raises an > exception than doing: The later ones support assert_exception(Name) { code block } For example, in the test suite we're building, you'll find: assert_exception(IndexError) { {}.fetch(1) } We're using 0.1.4. Regards Dave