Parent

Methods

CI::Reporter::FailureCore

Public Instance Methods

location(e) click to toggle source
# File lib/ci/reporter/minitest.rb, line 20
def location(e)
  last_before_assertion = ""
  e.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

[Validate]

Generated with the Darkfish Rdoc Generator 2.