Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.7.0.pre1
-
Fix Version/s: JRuby 1.7.0.pre1
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:OS X Lion
jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-04-21 694c0b9) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_31) [darwin-x86_64-java]
-
Number of attachments :
Description
The following test added to test/test_file.rb fails:
def test_file_exists_uri_prefixes
assert(!FileTest.exists?("file:test/dir with spaces/test_jar.jar!/abc/foo.rb"))
assert(!FileTest.exists?("jar:file:test/dir with spaces/test_jar.jar!/abc/foo.rb"))
end
Other tests work on files in jars.
Terribly sorry: I missed the '!', and the class used should be File, not FileTest. Without the '!' and using File instead of FileTest, the second assert fails, and it should succeed.