Parent

Included Modules

Class Index [+]

Quicksearch

Test::Unit::Pending

Constants

SINGLE_CHARACTER
(Not documented)
LABEL
(Not documented)

Attributes

test_name[R]

(Not documented)

location[R]

(Not documented)

message[R]

(Not documented)

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

(Not documented)

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

(Not documented)

# 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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.