summaryrefslogtreecommitdiff
path: root/spec/bundler
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-12-20 19:52:17 +0100
committergit <svn-admin@ruby-lang.org>2021-12-22 03:12:56 +0900
commitef973aa7aa65143a4f05d623c016d459426770d0 (patch)
tree29262be2c835e12fea37bb3928785f37c4ff9f21 /spec/bundler
parentad3537738c71ccd62191a7ff79eb720ddef4ea8b (diff)
[rubygems/rubygems] These commands shouldn't be failing, just warning
https://github.com/rubygems/rubygems/commit/04b1ac72b9
Diffstat (limited to 'spec/bundler')
-rw-r--r--spec/bundler/commands/install_spec.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/bundler/commands/install_spec.rb b/spec/bundler/commands/install_spec.rb
index e00caa5315..918dc28acb 100644
--- a/spec/bundler/commands/install_spec.rb
+++ b/spec/bundler/commands/install_spec.rb
@@ -364,7 +364,9 @@ RSpec.describe "bundle install with gem sources" do
end
it "throws a warning if a gem is added twice in Gemfile without version requirements" do
- install_gemfile <<-G, :raise_on_error => false
+ build_repo2
+
+ install_gemfile <<-G
source "#{file_uri_for(gem_repo2)}"
gem "rack"
gem "rack"
@@ -376,7 +378,9 @@ RSpec.describe "bundle install with gem sources" do
end
it "throws a warning if a gem is added twice in Gemfile with same versions" do
- install_gemfile <<-G, :raise_on_error => false
+ build_repo2
+
+ install_gemfile <<-G
source "#{file_uri_for(gem_repo2)}"
gem "rack", "1.0"
gem "rack", "1.0"