diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-10-03 12:10:05 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-10-06 05:13:39 +0900 |
commit | 358fe26b31c25033cc1857a4b44634f51d0ee354 (patch) | |
tree | b7e21a663e86f305d51d413cda56f665225ab27f /spec/bundler/bundler | |
parent | 139e79e5a90f8ab50c4f2bdd4c977c64474e529d (diff) | |
download | ruby-358fe26b31c25033cc1857a4b44634f51d0ee354.tar.gz |
[rubygems/rubygems] Fix little UI issue when bundler shows duplicated gems in a list
https://github.com/rubygems/rubygems/commit/3f71d882e9
Diffstat (limited to 'spec/bundler/bundler')
-rw-r--r-- | spec/bundler/bundler/definition_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/bundler/bundler/definition_spec.rb b/spec/bundler/bundler/definition_spec.rb index 13688c2b3d..e7235a4e78 100644 --- a/spec/bundler/bundler/definition_spec.rb +++ b/spec/bundler/bundler/definition_spec.rb @@ -82,6 +82,24 @@ RSpec.describe Bundler::Definition do G end + it "with an explicit update" do + build_repo4 do + build_gem("ffi", "1.9.23") {|s| s.platform = "java" } + build_gem("ffi", "1.9.23") + end + + gemfile <<-G + source "#{file_uri_for(gem_repo4)}" + gem "ffi" + G + + bundle "lock --add-platform java" + + bundle "update ffi", :env => { "DEBUG" => "1" } + + expect(out).to match(/because bundler is unlocking gems: \(ffi\)/) + end + it "for a path gem with deps and no changes" do build_lib "foo", "1.0", :path => lib_path("foo") do |s| s.add_dependency "rack", "1.0" |