-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for Process: ensure chdir is a string #13503
Conversation
Ensures that when `chdir` is not a `String` or `Nil` that it is converted to a `String`.
Is there a spec for this? |
No, and given that |
If something doesn't compile, it isn't tiny at all |
Right, but given how infrequently the |
Line 150 in 0627b47
So you are saying this bugfix doesn't deserve a spec because you belong to a minority? |
No, I would make the same argument if this affected platforms other than Windows. My point is the change is so small that I think having specs for it isn't necessary. That doesn't invalidate the fact that it didn't compile beforehand, but I don't see it as something so significant that specs would be necessary for it. |
This fix prevents the following compile-time error by ensuring that
#to_s
is called forPath
andString
: