diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-08-10 11:15:30 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-08-10 11:15:30 -0500 |
commit | 87acd062146fc9be5acd45948ef282f31d5bba44 (patch) | |
tree | a5156a06360fcc6df6da8d15a50f6c0902b79700 /spec/install/gems/compact_index_spec.rb | |
parent | ef2a97745ce708beca37cf233dcd6f94d2278d3a (diff) | |
download | bundler-87acd062146fc9be5acd45948ef282f31d5bba44.tar.gz |
Add a spec for case conflicts on the compact index
Diffstat (limited to 'spec/install/gems/compact_index_spec.rb')
-rw-r--r-- | spec/install/gems/compact_index_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/install/gems/compact_index_spec.rb b/spec/install/gems/compact_index_spec.rb index 05137c9ffe..61f81f10fa 100644 --- a/spec/install/gems/compact_index_spec.rb +++ b/spec/install/gems/compact_index_spec.rb @@ -44,6 +44,23 @@ describe "compact index api" do ) end + it "should handle case sensitivity conflicts" do + build_repo4 do + build_gem "rack", "1.0" do |s| + s.add_runtime_dependency("Rack", "0.1") + end + build_gem "Rack", "0.1" + end + + install_gemfile! <<-G, :artifice => "compact_index", :env => { "BUNDLER_SPEC_GEM_REPO" => gem_repo4 } + source "#{source_uri}" + gem "rack", "1.0" + gem "Rack", "0.1" + G + + expect(the_bundle).to include_gems("rack 1.0", "Rack 1.0") + end + it "should handle multiple gem dependencies on the same gem" do gemfile <<-G source "#{source_uri}" |