Skip to content

Instantly share code, notes, and snippets.

@bitaxis
Created November 10, 2009 23:16
Show Gist options
  • Save bitaxis/231376 to your computer and use it in GitHub Desktop.
Save bitaxis/231376 to your computer and use it in GitHub Desktop.
assert_false method
def assert_false(boolean, message=nil)
_wrap_assertion do
assert_block("assert_false should not be called with a block.") { !block_given? }
assert_block(build_message(message, "<?> is not false.", boolean)) { boolean == false }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment