From 87acd062146fc9be5acd45948ef282f31d5bba44 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Wed, 10 Aug 2016 11:15:30 -0500 Subject: Add a spec for case conflicts on the compact index --- spec/install/gems/compact_index_spec.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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}" -- cgit v1.2.1