rspec/rspec-core — pull request #1730 by axos88 (2014-10-03 15:38:31+00:00)
Title: fixing Metadata.relative_path for /foo/bar , /foo/bar_baz becoming ._baz

The behaviour of relative path in Metadata was causing me problems when invoking rspec in a directory named
/foo/bar, while the tests were in /foo/bar_baz.

Metadata.relative_path solved them to ._baz, instead of seeing that the tests are not in the directory of invocation, and using the absolute path instead.

Not sure why this is done with regexes though. The pathname object supports finding the relative path from one to the other.