Skip to content
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

ScriptingContainer.getHomeDirectory() and getCurrentDirectory() return / paths and no \\ paths on Windows #3720

Closed
enebo opened this issue Mar 9, 2016 · 1 comment

Comments

@enebo
Copy link
Member

enebo commented Mar 9, 2016

ScriptingContainer.getHomeDirectory() and getCurrentDirectory() return / paths and no \ paths on Windows

Environment

Windows on both JRuby 1.7.25 and 9.0.5.0+.

Expected Behavior

Paths are documented to return as OS-specific for Scripting container but we always return as unix-style paths.

Actual Behavior

@enebo
Copy link
Member Author

enebo commented Mar 9, 2016

I also massaged the tests to use File.equals(File) since it is too picky to expect things like trailing \ on a directory. I think the spirit of this string is intended to be used as either:

  • output
  • parameter to java.io.File

@enebo enebo closed this as completed Mar 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant