method

assert_nothing_raised

v1_8_7_72 - Show latest stable - Class: Test::Unit::Assertions
assert_nothing_raised(*args)
public

Passes if block does not raise an exception.

Example:

  assert_nothing_raised do
    [1, 2].uniq
  end