method

assert_nothing_thrown

v1_8_7_330 - Show latest stable - Class: Test::Unit::Assertions
assert_nothing_thrown(message="", &proc)
public

Passes if block does not throw anything.

Example:

assert_nothing_thrown do
  [1, 2].uniq
end