Posted By: Designing Patterns
Date: 2008-06-08 06:02
Summary: assertions 1.1.0 Released
Project: assertions
assertions version 1.1.0 has been released!
This package adds some additional assertions to Test::Unit::Assertions, including: * Assertions for all of the comparison operators (<code>assert_greater_than</code>, <code>assert_less_than_or_equal_to</code>, etc.). Shorter aliases also are provided for these (<code>assert_gt</code>, <code>assert_le</code>, etc.). * An assertion that verifies that a given block raises a specified exception with a specified message (<code>assert_raise_message</code>). This allows full testing of error messages. * An assertion that verifies that a given block contains an assertion that fails (<code>assert_fail</code>), which can be used to test new assertions.
Changes:
### 1.1.0 / 2008-06-08 Make the failure message when an exception does not have the expected message display the expected message and the actual message on top of each other, for easy comparisons. |
|