aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-05-28 18:04:41 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-05 07:32:42 +0900
commit5c924f597f7d633543589de152d09011a3fc2d21 (patch)
treea1634c349682910cb44dfd9285c05a7baf575df9 /spec
parent99dc55987d539e1f665ff30e03479f31dbbead72 (diff)
downloadruby-5c924f597f7d633543589de152d09011a3fc2d21.tar.gz
[rubygems/rubygems] Make `forgotten_command_line_options` always "forget" options
https://github.com/rubygems/rubygems/commit/4d39338670
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/support/helpers.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb
index e487a86045..c9d292a026 100644
--- a/spec/bundler/support/helpers.rb
+++ b/spec/bundler/support/helpers.rb
@@ -131,12 +131,10 @@ module Spec
bang :bundle
def forgotten_command_line_options(options)
- remembered = Bundler::VERSION.split(".", 2).first == "2"
options = options.map do |k, v|
v = '""' if v && v.to_s.empty?
[k, v]
end
- return Hash[options] if remembered
options.each do |k, v|
if v.nil?
bundle! "config unset #{k}"