Browse files

Test case for JRUBY-4760. Reuses test/jar_with_relative_require1.jar.

  • Loading branch information...
1 parent fffa5a7 commit 3571be225958d96ce2010a94111c282a48647404 @BanzaiMan BanzaiMan committed May 2, 2010
Showing with 13 additions and 0 deletions.
  1. +13 −0 test/test_dotdot_inside_jar.rb
View
13 test/test_dotdot_inside_jar.rb
@@ -0,0 +1,13 @@
+require 'test/unit'
+
+# JRUBY-4760
+
+class TestDotDotInsideJar < Test::Unit::TestCase
+
+ def test_access_file_with_dotdot
+ assert_nothing_raised {
+ jar = File.join(File.dirname(__FILE__), 'jar_with_relative_require1.jar')
+ File.open("file:#{jar}!/test/../foo.rb")
+ }
+ end
+end

0 comments on commit 3571be2

Please sign in to comment.