Parent

Class/Module Index [+]

Quicksearch

Test::Unit::Pending

Attributes

location[R]
message[R]
test_name[R]

Public Class Methods

new(test_name, location, message) click to toggle source

Creates a new Pending with the given location and message.

# File lib/test/unit/pending.rb, line 14
def initialize(test_name, location, message)
  @test_name = test_name
  @location = location
  @message = message
end

Public Instance Methods

critical?() click to toggle source
# File lib/test/unit/pending.rb, line 45
def critical?
  true
end
label() click to toggle source
# File lib/test/unit/pending.rb, line 25
def label
  LABEL
end
long_display() click to toggle source

Returns a verbose version of the error description.

# File lib/test/unit/pending.rb, line 35
def long_display
  backtrace = filter_backtrace(location).join("\n")
  "#{label}: #{@message}\n#{@test_name}\n#{backtrace}"
end
short_display() click to toggle source

Returns a brief version of the error description.

# File lib/test/unit/pending.rb, line 30
def short_display
  "#{@test_name}: #{@message.split("\n")[0]}"
end
single_character_display() click to toggle source

Returns a single character representation of a pending.

# File lib/test/unit/pending.rb, line 21
def single_character_display
  SINGLE_CHARACTER
end
to_s() click to toggle source

Overridden to return long_display.

# File lib/test/unit/pending.rb, line 41
def to_s
  long_display
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.