summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-09 14:15:48 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-10 14:56:47 +0200
commitb3ecd698d6f7b95fa75433a98cb488e055a25ae1 (patch)
treef145761907b3ab3489771e2f8a792841250d8dd9
parentf366392bf416742c3f0bcf5adfcab3603cc2cdde (diff)
downloadbundler-b3ecd698d6f7b95fa75433a98cb488e055a25ae1.tar.gz
Fill in missing deprecation spec
-rw-r--r--spec/other/major_deprecation_spec.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/other/major_deprecation_spec.rb b/spec/other/major_deprecation_spec.rb
index 5f79a0ce4c..196cdd72a8 100644
--- a/spec/other/major_deprecation_spec.rb
+++ b/spec/other/major_deprecation_spec.rb
@@ -318,7 +318,15 @@ RSpec.describe "major deprecations" do
)
end
- pending "fails with a helpful error", :bundler => "3"
+ it "fails with a helpful error", :bundler => "3" do
+ expect(err).to include(
+ "[!] There was an error evaluating `Gemfile`: " \
+ "This Gemfile contains multiple primary sources. " \
+ "Each source after the first must include a block to indicate which gems should come from that source. " \
+ "To downgrade this error to a warning, run `bundle config unset disable_multisource`. " \
+ "Bundler cannot continue."
+ )
+ end
end
context "when Bundler.setup is run in a ruby script" do