Exception: Minitest::UnexpectedError
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: 
          self,
           Assertion,
          Exception | |
| Instance Chain: | |
| Inherits: | Minitest::Assertion 
 | 
| Defined in: | lib/minitest.rb | 
Overview
Assertion wrapping an unexpected error that was raised during a run.
Constant Summary
- 
    BASE_RE =
    Internal use only
    
 # File 'lib/minitest.rb', line 1082%r%#{Dir.pwd}/%
Assertion - Inherited
  
Class Method Summary
- .new(error) ⇒ UnexpectedError constructor Internal use only
Instance Attribute Summary
- 
    
      #error  
    
    rw
    Internal use only
    TODO: figure out how to use causeinstead.
Instance Method Summary
- #backtrace Internal use only
- #message Internal use only
- #result_label Internal use only
Compress - Included
| #compress | Takes a backtrace (array of strings) and compresses repeating cycles in it to make it more readable. | 
Assertion - Inherited
| #location | Where was this run before an assertion was raised? | 
| #error, #result_code, #result_label | |
Constructor Details
    .new(error)  ⇒ UnexpectedError 
  
  
    This method is for internal use only.
  
Instance Attribute Details
#error (rw)
    This method is for internal use only.
  
TODO: figure out how to use cause instead
# File 'lib/minitest.rb', line 1063
attr_accessor :error # :nodoc:
Instance Method Details
#backtrace
    This method is for internal use only.
  
  [ GitHub ]
# File 'lib/minitest.rb', line 1078
def backtrace # :nodoc: self.error.backtrace end
#message
    This method is for internal use only.
  
  [ GitHub ]
#result_label
    This method is for internal use only.
  
  [ GitHub ]
# File 'lib/minitest.rb', line 1090
def result_label # :nodoc: "Error" end