cheat sheets.

$ cheat assert_raise
# 'cheat assertions' for the rest

assert_raise(*args) {|| ...}

Passes if the block raises one of the given exceptions.

Example:

  assert_raise RuntimeError, LoadError do
    raise 'Boom!!!'
  end
Version 1, updated 175 days ago.
. o 0 ( | history | revert to | current | diff )
( add new | see all )