Exception: Minitest::Assertion
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Exception
|
|
Instance Chain:
self,
Exception
|
|
Inherits: |
Exception
|
Defined in: | lib/minitest.rb |
Overview
Represents run failures.
Instance Method Summary
-
#location
Where was this run before an assertion was raised?
Instance Method Details
#location
Where was this run before an assertion was raised?
# File 'lib/minitest.rb', line 694
def location last_before_assertion = "" self.backtrace.reverse_each do |s| break if s =~ /in .(assert|refute|flunk|pass|fail|raise|must|wont)/ last_before_assertion = s end last_before_assertion.sub(/:in .*$/, "") end