From 6bba89d4c869eb791e5e041d8fe892f994e08fda Mon Sep 17 00:00:00 2001 From: Colby Swandale Date: Tue, 17 Jul 2018 00:21:31 +1000 Subject: remove bundle 2 spec that tests features that is not available in 1-16-stable --- spec/install/gemfile/sources_spec.rb | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/spec/install/gemfile/sources_spec.rb b/spec/install/gemfile/sources_spec.rb index 1c477e33a3..c814d0de76 100644 --- a/spec/install/gemfile/sources_spec.rb +++ b/spec/install/gemfile/sources_spec.rb @@ -616,31 +616,4 @@ RSpec.describe "bundle install with gems on multiple sources" do end end end - - context "when a gem is available from multiple ambiguous sources", :bundler => "2" do - it "raises, suggesting a source block" do - build_repo4 do - build_gem "depends_on_rack" do |s| - s.add_dependency "rack" - end - build_gem "rack" - end - - install_gemfile <<-G - source "file://localhost#{gem_repo4}" - source "file://localhost#{gem_repo1}" do - gem "thin" - end - gem "depends_on_rack" - G - expect(last_command).to be_failure - expect(last_command.stderr).to eq normalize_uri_file(strip_whitespace(<<-EOS).strip) - The gem 'rack' was found in multiple relevant sources. - * rubygems repository file://localhost#{gem_repo1}/ or installed locally - * rubygems repository file://localhost#{gem_repo4}/ or installed locally - You must add this gem to the source block for the source you wish it to be installed from. - EOS - expect(the_bundle).not_to be_locked - end - end end -- cgit v1.2.1