-
-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(path): make find_upwards() search root (#506)
The previous implementation of `Path:find_upwards()` used the loop condition `folder ~= root` to bound the search which meant the root directory would never be searched. This commit instead breaks the `while true` loop after searching the root directory. The function now also returns `nil` rather than a blank string to indicate that the search has failed. Finally, this commit adds specs for the function.
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters