class Test::Unit::Pending
Constants
- LABEL
- SINGLE_CHARACTER
Attributes
location[R]
message[R]
method_name[R]
test_name[R]
Public Class Methods
new(test_name, location, message, options={})
click to toggle source
Creates a new Pending
with the given location and message.
# File test-unit-3.3.4/lib/test/unit/pending.rb, line 15 def initialize(test_name, location, message, options={}) @test_name = test_name @location = location @message = message @method_name = options[:method_name] end
Public Instance Methods
critical?()
click to toggle source
# File test-unit-3.3.4/lib/test/unit/pending.rb, line 47 def critical? true end
label()
click to toggle source
# File test-unit-3.3.4/lib/test/unit/pending.rb, line 27 def label LABEL end
long_display()
click to toggle source
Returns a verbose version of the error description.
# File test-unit-3.3.4/lib/test/unit/pending.rb, line 37 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 test-unit-3.3.4/lib/test/unit/pending.rb, line 32 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 test-unit-3.3.4/lib/test/unit/pending.rb, line 23 def single_character_display SINGLE_CHARACTER end
to_s()
click to toggle source
Overridden to return long_display.
# File test-unit-3.3.4/lib/test/unit/pending.rb, line 43 def to_s long_display end