ANN: assert_raise_message

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:

AKA: O'Reilly Media - Technology and Business Training

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 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 G. II