Skip to content

Commit

Permalink
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/java_integration/paths/uri_classloader_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
require File.dirname(__FILE__) + "/../spec_helper"

describe "uri:classloader path strings" do
let(:many_slashes_path) { "uri:classloader:////foo/b.gemspec" }
let(:unc_like_path) { "uri:classloader://foo/b.gemspec" }
let(:normal_path) { "uri:classloader:/foo/b.gemspec" }

it "sent to expand_path will normalize slashes" do
expect(File.expand_path(unc_like_path)).to eq(normal_path)
expect(File.expand_path(many_slashes_path)).to eq(normal_path)
end
end

0 comments on commit a82a5c2

Please sign in to comment.