Robert Feldt <feldt / ce.chalmers.se> 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