diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-05-21 21:05:07 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-05-22 20:32:30 +0900 |
commit | 1d889c96562e9619d2cab443da711e82daeb983c (patch) | |
tree | 0a6a142360be987ceaff6cbf24a03fd5797ecb66 /spec/bundler/other | |
parent | 93ebf9643dc0913693157e6b4bb391a549a9b8ae (diff) |
Sync Bundler PR #3624 with HEAD commits
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3114
Diffstat (limited to 'spec/bundler/other')
-rw-r--r-- | spec/bundler/other/major_deprecation_spec.rb | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/spec/bundler/other/major_deprecation_spec.rb b/spec/bundler/other/major_deprecation_spec.rb index e9398e3b24..102588e97a 100644 --- a/spec/bundler/other/major_deprecation_spec.rb +++ b/spec/bundler/other/major_deprecation_spec.rb @@ -314,17 +314,18 @@ RSpec.describe "major deprecations" do end { - :clean => true, - :deployment => true, - :frozen => true, - :"no-cache" => true, - :"no-prune" => true, - :path => "vendor/bundle", - :shebang => "ruby27", - :system => true, - :without => "development", - :with => "development", - }.each do |name, value| + "clean" => ["clean", true], + "deployment" => ["deployment", true], + "frozen" => ["frozen", true], + "no-cache" => ["no_cache", true], + "no-prune" => ["no_prune", true], + "path" => ["path", "vendor/bundle"], + "shebang" => ["shebang", "ruby27"], + "system" => ["system", true], + "without" => ["without", "development"], + "with" => ["with", "development"], + }.each do |name, expectations| + option_name, value = *expectations flag_name = "--#{name}" context "with the #{flag_name} flag" do @@ -338,7 +339,7 @@ RSpec.describe "major deprecations" do "The `#{flag_name}` flag is deprecated because it relies on " \ "being remembered across bundler invocations, which bundler " \ "will no longer do in future versions. Instead please use " \ - "`bundle config set #{name} '#{value}'`, and stop using this flag" + "`bundle config set #{option_name} '#{value}'`, and stop using this flag" ) end |