cheat sheets.

$ cheat assert_block
# '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
  end
Version 1, updated 419 days ago.
. o 0 ( edit | history )
( add new | see all )