Class

Test::Unit::Failure

Inheritance
< Object

Encapsulates a test failure. Created by Test::Unit::TestCase when an assertion fails.

Constants

Name   Description
SINGLE_CHARACTER = 'F'

Attributes

Name Visibility R/W Description
location public R
message public R
test_name public R

Methods

Class

Visibility Signature
public new (test_name, location, message)

Instance

Visibility Signature
public long_display ()
public short_display ()
public single_character_display ()
public to_s ()

Class Method Detail

new(test_name, location, message)

Creates a new Failure with the given location and message.

Instance Method Detail

long_display()

Returns a verbose version of the error description.

short_display()

Returns a brief version of the error description.

single_character_display()

Returns a single character representation of a failure.

to_s()

Overridden to return long_display.