Closed straight-shoota closed 1 week ago
Relativized paths in the spec output (for example for Failed examples) are wrong on Windows. They incorrectly include a leading directory separator, making them relative to the drive root:
Failed examples
Failed examples: crystal spec \spec\fail_spec.cr:3 # assert
The implementation does not account for other directory separators than \. This fix replaces it with Path#relative_to which handles this correctly.
\
Path#relative_to
Relativized paths in the spec output (for example for
Failed examples
) are wrong on Windows. They incorrectly include a leading directory separator, making them relative to the drive root:The implementation does not account for other directory separators than
\
. This fix replaces it withPath#relative_to
which handles this correctly.