# 'cheat assertions' for the rest
assert_block(message="assert_block failed.") {|| ...}
The assertion upon which all other assertions are based. Passes if the block
yields true.
Example:
assert_block "Couldn't do the thing" do
do_the_thing
endcheat sheets.
$ cheat assert_block( add new | see all )
- updated sheets

- mysql_select
- cheat
- cryptsetup
- burm
- perl
- port
- yuilang
- queriac
- mechanize
- sness
- nonsense
- haml
- git
- assert_valid
- marsmission
Advertisement