Skip to content

Normalize absolute paths inside Dir.pwd#10

Open
teoljungberg wants to merge 2 commits into
seattlerb:masterfrom
teoljungberg:normalize-absolute-paths
Open

Normalize absolute paths inside Dir.pwd#10
teoljungberg wants to merge 2 commits into
seattlerb:masterfrom
teoljungberg:normalize-absolute-paths

Conversation

@teoljungberg
Copy link
Copy Markdown

Mirrors the ./ stripping already in _normalize so absolute
paths inside Dir.pwd do not break callers that follow the
README pattern of prepending ./. See minitest/minitest#1070.

Both `_normalize` rules -- the leading `./` strip and the new
`Dir.pwd/` strip -- are verified at the `expand_dirs_to_files`
boundary, where `__leading_dot` already lives.  Minitest's copy of
this test sits in `process_args` because it bundles `:line`
parsing into the same case; path_expander has no equivalent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant