cheat sheets.

$ cheat assert_nothing_raised
# 'cheat assertions' for the rest

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

Passes if block does not raise an exception.

Example:

  assert_nothing_raised do
    [1, 2].uniq
  end
Version 1, updated 419 days ago.
. o 0 ( edit | history )
( add new | see all )