method

assert_nil

v1_8_7_330 - Show latest stable - Class: Test::Unit::Assertions
assert_nil(object, message="")
public

Passes if object is nil.

Example:

assert_nil [1, 2].uniq!