Posted By: Designing Patterns
Date: 2008-06-27 04:42
Summary: assertions 1.4.0 Released
Project: assertions
assertions version 1.4.0 has been released!
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)
Changes:
### 1.4.0 / 2008-06-27 Add an Test::Unit::Assertions#assert_not method that verifies that a value is false or nil (opposite of the Test::Unit::Assertions#assert method). |
|