method

assert_not_nil

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

Passes if ! object .nil?

Example:

  assert_not_nil '1 two 3'.sub!(/two/, '2')