summaryrefslogtreecommitdiff
path: root/spec/bundler/commands
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-07-12 10:30:16 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-07-16 15:40:07 +0900
commit227c2deff4c4bc7e937020e6d9998f89fa6fdd97 (patch)
treef042af4937fcbdab82689d72ba8400c636bdbb1a /spec/bundler/commands
parentbbaebbf5290adcbbfe30bbd925c2bf85ce190f52 (diff)
[rubygems/rubygems] Fix development gem unintentionally removed on an edge case
When a development dependency was duplicated inside the gemspec and Gemfile with the same requirements, we went from printing a warning to removing the gem altogether. This change makes it not print a warning, but don't remove the gem either. https://github.com/rubygems/rubygems/commit/8bb2488131
Diffstat (limited to 'spec/bundler/commands')
-rw-r--r--spec/bundler/commands/install_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/bundler/commands/install_spec.rb b/spec/bundler/commands/install_spec.rb
index 3c0c35d844..00a277a826 100644
--- a/spec/bundler/commands/install_spec.rb
+++ b/spec/bundler/commands/install_spec.rb
@@ -388,6 +388,7 @@ RSpec.describe "bundle install with gem sources" do
bundle :install
expect(err).to be_empty
+ expect(the_bundle).to include_gems("my-private-gem 1.0")
end
it "throws an error if a gem is added twice in Gemfile when version of one dependency is not specified" do