Patches item #5748, was opened at 2006-09-13 19:34 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1700&aid=5748&group_id=426 Category: Ruby1.8 Group: None Status: Open Resolution: None Priority: 3 Submitted By: Esad Hajdarevic (esad) Assigned to: Nobody (None) Summary: (test/unit) assert_raise without parameters should check if any exception is being raised Initial Comment: Here's the patch for a behaviour similar to one discussed here: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/183201 Basically, if assert_raise is called without parameters, it should pass if the block raises any exception. Currently the following will not pass: require 'test/unit' include Test::Unit::Assertions assert_raise(RuntimeError) {raise} returning a somewhat cryptic error message: Test::Unit::AssertionFailedError: <[]> exception expected but was... ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1700&aid=5748&group_id=426