watir/assertions.rb in watir-1.5.4 vs watir/assertions.rb in watir-1.5.5
- old
+ new
@@ -31,6 +31,14 @@
verify(string =~ pattern, full_message)
end
end
-end
\ No newline at end of file
+end
+module Test::Unit::Assertions
+ def assert_false(boolean, message=nil)
+ _wrap_assertion do
+ assert_block("assert should not be called with a block.") { !block_given? }
+ assert_block(build_message(message, "<?> is not false.", boolean)) { !boolean }
+ end
+ end
+end