Dmitry N Orlov
11/11/2003 7:57:00 AM
In Test Unit need assert_false. Mr.Talbott, do You include this in package?
Of course, everyone can do it :)
#assertions.rb
# Passes if boolean is false.
public
def assert_false(boolean, message="")
_wrap_assertion do
assert_block("assert should not be called with a block.") {
!block_given? }
assert_block(message) { !boolean }
end
end