RUNIT::Assert module

Methods:

RUNIT::Assert#assert(condition [,message])

Raises RUNIT::AssertionFailedError if condition is false or nil. If second argument specified, raises RUNIT::AssertionFailedError with message string.

RUNIT::Assert#assert_equal(expected, actual [,message])

Raises RUNIT::AssertionFailedError if expected != actual. If third argument specified, raises RUNIT::AssertionFailedError with message string.

RUNIT::Assert#assert_fail(message)

Raises RUNIT::AssertionFailedError with message string specified by argument.

RUNIT::Assert#assert_instance_of(class, obj [,message])

Raises RUNIT::AssertionFailedError if obj.instance_of?(class) is false. If third argument specified, raises RUNIT::AssertionFailedError with message string.

RUNIT::Assert#assert_kind_of(class, obj [,message])

Raises RUNIT::AssertionFailedError if obj.kind_of?(class) is false. If third argument specified, raises RUNIT::AssertionFailedError with message string.

RUNIT::Assert#assert_match(re, str [,message])

Raises RUNIT::AssertionFailedError if re !~ str. If third argument specified, raises RUNIT::AssertionFailedError with message string.

RUNIT::Assert#assert_nil(obj [,message])

Raises RUNIT::AssertionFailedError if obj is not nil. If second argument specified, raises RUNIT::AssertionFailedError with message string.

RUNIT::Assert#assert_not_nil(obj [,message])

Raises RUNIT::AssertionFailedError if obj is nil. If second argument specified, raises RUNIT::AssertionFailedError with message string.

RUNIT::Assert#assert_respond_to(method, obj [,message])

Raises RUNIT::AssertionFailedError if obj.respond_to?(method) is false. If third argument specified, raises RUNIT::AssertionFailedError with message string.

RUNIT::Assert#assert_same(expected, actual [,message])

Raises RUNIT::AssertionFailedError if actual.equal?(expected) is false. If third argument specified, raises RUNIT::AssertionFailedError with message string.