method

assert_not_nil

v1_9_3_125 - Show latest stable - Class: Test::Unit::Assertions
assert_not_nil(exp, msg=nil)
public

Tests if expression is not nil.

An optional failure message may be provided as the final argument.