In Files

  • test-unit-3.5.3/lib/test/unit/assertions.rb

Class/Module Index [+]

Quicksearch

Test::Unit::Assertions::AssertExceptionHelper::WrappedException

Attributes

exception[R]

Public Class Methods

new(exception) click to toggle source
 
               # File test-unit-3.5.3/lib/test/unit/assertions.rb, line 2304
def initialize(exception)
  @exception = exception
end
            

Public Instance Methods

inspect() click to toggle source
 
               # File test-unit-3.5.3/lib/test/unit/assertions.rb, line 2308
def inspect
  if default_inspect?
    inspected = "#{@exception.class.inspect}(<#{@exception.message}>)"
    unless (@exception.backtrace || []).empty?
      inspected += "\n"
      @exception.backtrace.each do |trace|
        inspected << "#{trace}\n"
      end
    end
    inspected
  else
    @exception.inspect
  end
end
            
method_missing(name, *args, &block) click to toggle source
 
               # File test-unit-3.5.3/lib/test/unit/assertions.rb, line 2323
def method_missing(name, *args, &block)
  @exception.__send__(name, *args, &block)
end
            
There is an updated format of the API docs for this version here.