Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.7, JRuby 1.7.0.pre1
-
Fix Version/s: JRuby 1.7.0.pre1
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:OS X Lion
Apple Java
-
Number of attachments :
Description
These tests fail. Current dir is being inserted.
def test_expand_path_with_jar_file_prefix
jruby_specific_test
assert_equal "jar:file:/foo.jar!/bar", File.expand_path("jar:file:/foo.jar!/bar")
assert_equal "jar:file:/foo.jar!/bar", File.expand_path("jar:file:/foo.jar!/baz/../bar")
assert_equal "jar:file:/foo.jar!/bar/baz", File.expand_path("baz", "jar:file:/foo.jar!/bar")
assert_equal "jar:file:/foo.jar!/bar", File.expand_path("jar:file:/foo.jar!/bar", "jar:file:/baz.jar!/quux")
assert_equal "file:/foo.jar!/bar", File.expand_path("file:/foo.jar!/bar", "jar:file:/baz.jar!/quux")
end
Added patch with test and fix. All tests are green after patch.
Please review and commit if reasonable.