method

assert_nothing_thrown

v1_8_6_287 - 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