Rubies: I don't like assert_raise because the first thing I wanted to check was the e.message was correct. So I wrote assert_raise_message, and wrote that up as a tutorial on how to use assert_raise in general: http://www.oreillynet.com/onlamp/blog/2007/07/asse... AKA: http://tinyurl.com/23tlu5 assert_raise_message works great for test-firsting new assertions, because assertions should have comprehensive (and comprehensible) diagnostics. All new assertions should come with tests that they raise the correct messages.
on 2007-07-25 20:45
on 2007-07-25 20:52
On Jul 25, 2007, at 1:44 PM, Phlip wrote: > I don't like assert_raise because the first thing I wanted to check > was the > e.message was correct. message = assert_raise ... do ... end assert_equals(..., message) James Edward Gray II