diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-12-15 13:28:50 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-12-17 16:35:20 +0900 |
commit | 8d29d1292b35ad524ce15f82177a2975da43432d (patch) | |
tree | 9fcdf543b087528b7a82ae1951beb86443382541 /spec/bundler/install/gemfile/specific_platform_spec.rb | |
parent | 1537471871f9a06624689b55be222f0ea601d140 (diff) |
[rubygems/rubygems] Improve errors a bit more
https://github.com/rubygems/rubygems/commit/f481e8f41a
Diffstat (limited to 'spec/bundler/install/gemfile/specific_platform_spec.rb')
-rw-r--r-- | spec/bundler/install/gemfile/specific_platform_spec.rb | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/spec/bundler/install/gemfile/specific_platform_spec.rb b/spec/bundler/install/gemfile/specific_platform_spec.rb index 6035f55ef2..113a0a1352 100644 --- a/spec/bundler/install/gemfile/specific_platform_spec.rb +++ b/spec/bundler/install/gemfile/specific_platform_spec.rb @@ -298,8 +298,13 @@ RSpec.describe "bundle install with specific platforms" do bundle "install", :raise_on_error => false end - expect(err).to include("Could not find gem 'sorbet-static (= 0.5.6433) arm64-darwin-21' in rubygems repository #{file_uri_for(gem_repo2)}/ or installed locally.") - expect(err).to include("The source contains the following gems matching 'sorbet-static (= 0.5.6433)': sorbet-static-0.5.6433-universal-darwin-20, sorbet-static-0.5.6433-x86_64-linux") + expect(err).to include <<~ERROR.rstrip + Could not find gem 'sorbet-static (= 0.5.6433) arm64-darwin-21' in rubygems repository #{file_uri_for(gem_repo2)}/ or installed locally. + + The source contains the following gems matching 'sorbet-static (= 0.5.6433)': + * sorbet-static-0.5.6433-universal-darwin-20 + * sorbet-static-0.5.6433-x86_64-linux + ERROR end it "does not resolve if the current platform does not match any of available platform specific variants for a transitive dependency" do @@ -319,8 +324,13 @@ RSpec.describe "bundle install with specific platforms" do bundle "install", :raise_on_error => false end - expect(err).to include("Could not find gem 'sorbet-static (= 0.5.6433) arm64-darwin-21', which is required by gem 'sorbet (= 0.5.6433)', in rubygems repository #{file_uri_for(gem_repo2)}/ or installed locally.") - expect(err).to include("The source contains the following gems matching 'sorbet-static (= 0.5.6433)': sorbet-static-0.5.6433-universal-darwin-20, sorbet-static-0.5.6433-x86_64-linux") + expect(err).to include <<~ERROR.rstrip + Could not find gem 'sorbet-static (= 0.5.6433) arm64-darwin-21', which is required by gem 'sorbet (= 0.5.6433)', in rubygems repository #{file_uri_for(gem_repo2)}/ or installed locally. + + The source contains the following gems matching 'sorbet-static (= 0.5.6433)': + * sorbet-static-0.5.6433-universal-darwin-20 + * sorbet-static-0.5.6433-x86_64-linux + ERROR end private |