lib/test/unit/testcase.rb in test-unit-3.1.2 vs lib/test/unit/testcase.rb in test-unit-3.1.3
- old
+ new
@@ -119,15 +119,15 @@
end
source_location = find_attribute(stringified_name, :source_location)
if source_location
path, line = source_location
else
- path, line, = caller[0].split(/:(\d+)/,2)
+ path, line, = caller[0].split(/:(\d+)/, 2)
line = line.to_i if line
end
method_locations << {
:method_name => stringified_name,
- :path => path,
+ :path => File.expand_path(path),
:line => line,
}
added_method_names[stringified_name] = true
end