Hi,
As you may know Test::Unit does ! include an assert_false.
I got this from the CLR archives.
Enter this in assertations.rb
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
test example
regex = /Joe.*Bloggs/
assert_false($ie.contains_text(regex), "#{regex} unexpectedly found in
HTML")
aidy
---------------------------------------------------------------------------------------------------------------
This message and any attachment are confidential and may be privileged or
otherwise protected from disclosure.
If you are not the intended recipient, please telephone or email the sender and
delete this message and any attachment from your system.
If you are not the intended recipient you must not copy this message or
attachment or disclose the contents to any other person.
---------------------------------------------------------------------------------------------------------------
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general