summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-21 12:53:46 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-08 13:04:27 +0200
commit7cf4ac2e6b5bbec487ab9a44b898733ae4b4208e (patch)
tree905407ef3ef6e64ed2c6773657a0af70cae6e37b /spec
parent68c1d0bc572dec1c275e0b7d02f3a902bcb1210f (diff)
downloadbundler-7cf4ac2e6b5bbec487ab9a44b898733ae4b4208e.tar.gz
Check the full warning text
Diffstat (limited to 'spec')
-rw-r--r--spec/other/major_deprecation_spec.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/other/major_deprecation_spec.rb b/spec/other/major_deprecation_spec.rb
index 6456e7838e..cd8b721609 100644
--- a/spec/other/major_deprecation_spec.rb
+++ b/spec/other/major_deprecation_spec.rb
@@ -358,7 +358,14 @@ RSpec.describe "major deprecations" do
end
it "shows a deprecation", :bundler => "2" do
- expect(deprecations).to include(a_string_containing("Your Gemfile contains multiple primary sources."))
+ expect(deprecations).to include(
+ "Your Gemfile contains multiple primary sources. " \
+ "Using `source` more than once without a block is a security risk, and " \
+ "may result in installing unexpected gems. To resolve this warning, use " \
+ "a block to indicate which gems should come from the secondary source. " \
+ "To upgrade this warning to an error, run `bundle config set " \
+ "disable_multisource true`."
+ )
end
end