summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-12 11:35:30 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-12 11:35:30 +0100
commit33c55e748b3ecea5ab8ee86b826a4d58de743996 (patch)
tree62211e4d13b2b244aaa192058639c3e3651a7b88
parentc3cbd4b9bdfd1aa7cd1f1d30301127656b26438a (diff)
downloadbundler-33c55e748b3ecea5ab8ee86b826a4d58de743996.tar.gz
Format deprecation warning check consistently
-rw-r--r--spec/other/major_deprecation_spec.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/other/major_deprecation_spec.rb b/spec/other/major_deprecation_spec.rb
index a65d50b7a3..05ef9b7570 100644
--- a/spec/other/major_deprecation_spec.rb
+++ b/spec/other/major_deprecation_spec.rb
@@ -229,10 +229,12 @@ The :bitbucket git source is deprecated, and will be removed in Bundler 3.0. Add
context "with gist gems" do
it "warns about removal" do
allow(Bundler.ui).to receive(:deprecate)
- msg = "The :gist git source is deprecated, and will be removed " \
- "in Bundler 3.0. Add this code to the top of your Gemfile to ensure it " \
- "continues to work:\n\n git_source(:gist) {|repo_name| " \
- "\"https://gist.github.com/\#{repo_name}.git\" }\n\n"
+ msg = <<-EOS
+The :gist git source is deprecated, and will be removed in Bundler 3.0. Add this code to the top of your Gemfile to ensure it continues to work:
+
+ git_source(:gist) {|repo_name| "https://gist.github.com/\#{repo_name}.git" }
+
+ EOS
expect(Bundler::SharedHelpers).to receive(:major_deprecation).with(3, msg)
subject.gem("not-really-a-gem", :gist => "1234")
end