README.rdoc

assertions

DESCRIPTION:

This package adds some additional assertions to Test::Unit::Assertions,
including:

Assertions for all of the comparison operators
(Test::Unit::Assertions#assert_greater_than,
Test::Unit::Assertions#assert_less_than_or_equal_to, etc.). Shorter
aliases also are provided for these (Test::Unit::Assertions#assert_gt,
Test::Unit::Assertions#assert_le, etc.).

An assertion that verifies that a given block raises a specified exception
with a specified message (Test::Unit::Assertions#assert_raise_message).
This allows full testing of error messages.

An assertion that verifies that a given block contains an assertion that
fails (Test::Unit::Assertions#assert_fail), which can be used to test new
assertions.

An assertion that verifies that a given value is false or nil
(Test::Unit::Assertions#assert_not)