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.