# '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

- shoulda
- capistrano
- rpm
- string
- sqld4r
- cheat_el
- cheat
- magit
- to_i
- bm
- rails_date_formats
- sequel
- dexagogo_form_validation
- git
- git_remote_branch
Advertisement