Method: Minitest::Reportable#location
- Defined in:
- lib/minitest.rb
permalink #location ⇒ Object
The location identifier of this test. Depends on a method existing called class_name.
563 564 565 566 |
# File 'lib/minitest.rb', line 563 def location loc = " [#{self.failure.location.delete_prefix BASE_DIR}]" unless passed? or error? "#{self.class_name}##{self.name}#{loc}" end |