Skip to content

class NilAssertionError
inherits Exception

Raised when a not_nil! assertion fails.

"hello".index('x').not_nil! # raises NilAssertionError ("hello" does not contain 'x')

Class methods

.new(message = "Nil assertion failed")

View source