Skip to content
Permalink
Browse files
remove those "bundle" is not a known protocol error
  • Loading branch information
mkristian committed Dec 16, 2014
1 parent 8fe3ae7 commit 8a6cc24650dd1d5f9269c0132a3388c1edeb9351
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/test_file.rb
@@ -255,15 +255,15 @@ def test_expand_path_with_file_url_relative_path
def test_expand_path_looks_like_url
jruby_specific_test
assert_equal "classpath:/META-INF/jruby.home", File.expand_path("classpath:/META-INF/jruby.home")
assert_equal "uri:bundle://12.0:1/META-INF/jruby.home", File.expand_path("uri:bundle://12.0:1/META-INF/jruby.home")
assert_equal "uri:file://META-INF/jruby.home", File.expand_path("uri:file://META-INF/jruby.home")
assert_equal "http://example.com/a.jar", File.expand_path("http://example.com/a.jar")
assert_equal "http://example.com/", File.expand_path("..", "http://example.com/a.jar")
assert_equal "classpath:/foo/bar/baz", File.expand_path("baz", "classpath:/foo/bar")
assert_equal "classpath:/foo/bar", File.expand_path("classpath:/foo/bar", "classpath:/baz/quux")
assert_equal "classpath:/foo", File.expand_path("..", "classpath:/foo/bar")
assert_equal "uri:bundle://12.0:1/foo/bar/baz", File.expand_path("baz", "uri:bundle://12.0:1/foo/bar")
assert_equal "uri:bundle://12.0:1/foo/bar", File.expand_path("uri:bundle://12.0:1/foo/bar", "uri:bundle://12.0:1/baz/quux")
assert_equal "uri:bundle://12.0:1/foo", File.expand_path("..", "uri:bundle://12.0:1/foo/bar")
assert_equal "uri:jar://foo/bar/baz", File.expand_path("baz", "uri:jar://foo/bar")
assert_equal "uri:file://foo/bar", File.expand_path("uri:file://foo/bar", "uri:file://baz/quux")
assert_equal "uri:jar://foo", File.expand_path("..", "uri:jar://foo/bar")
end

def test_mkdir_with_non_file_uri_raises_error

0 comments on commit 8a6cc24

Please sign in to comment.