diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2018-12-18 10:32:11 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2018-12-19 10:24:01 +0100 |
commit | 4c11b08f4f793c5be51ae2d04f25d3cf8c233e99 (patch) | |
tree | cccaf6ae264872cbe1cc66bd1e5d2bcb97bcbe5e | |
parent | 8514437bb328f07e7d1152d50f97e776b6293b29 (diff) | |
download | bundler-4c11b08f4f793c5be51ae2d04f25d3cf8c233e99.tar.gz |
Improve `clean_env` deprecation message
-rw-r--r-- | lib/bundler.rb | 2 | ||||
-rw-r--r-- | spec/other/major_deprecation_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index 1cb3b4fb21..d98b0667f8 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -283,7 +283,7 @@ EOF # @deprecated Use `original_env` instead # @return [Hash] Environment with all bundler-related variables removed def clean_env - Bundler::SharedHelpers.major_deprecation(2, "`Bundler.clean_env` has weird edge cases, use `.original_env` instead") + Bundler::SharedHelpers.major_deprecation(2, "`Bundler.clean_env` has weird edge cases, use `Bundler.original_env` instead") env = original_env if env.key?("BUNDLER_ORIG_MANPATH") diff --git a/spec/other/major_deprecation_spec.rb b/spec/other/major_deprecation_spec.rb index fba177b497..83d5c1f50e 100644 --- a/spec/other/major_deprecation_spec.rb +++ b/spec/other/major_deprecation_spec.rb @@ -44,7 +44,7 @@ RSpec.describe "major deprecations", :bundler => "< 2" do it "is deprecated in favor of .original_env" do source = "Bundler.clean_env" bundle "exec ruby -e #{source.dump}" - expect(warnings).to have_major_deprecation "`Bundler.clean_env` has weird edge cases, use `.original_env` instead" + expect(warnings).to have_major_deprecation "`Bundler.clean_env` has weird edge cases, use `Bundler.original_env` instead" end end |