File.expand_path not handling directory starting points properly
----------------------------------------------------------------

                 Key: JRUBY-1016
                 URL: http://jira.codehaus.org/browse/JRUBY-1016
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.0.0RC2
         Environment: OS X, Java 1.5
            Reporter: Daniel Berger
            Priority: Minor


Of these, some return the wrong value (they're missing the leading slash), 
while others raise NativeException:
{noformat}
def test_expand_path_with_dir
      assert_equal("/bin", File.expand_path("../../bin", "/tmp/x"))
      assert_equal("/bin", File.expand_path("../../bin", "/tmp"))
      assert_equal("/bin", File.expand_path("../../bin", "/"))
      assert_equal("/bin", File.expand_path("../../../../../../../bin", "/"))
      assert_equal(File.join(@pwd, 'bin'), File.expand_path("../../bin", 
"tmp/x"))
end
{noformat}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to