summaryrefslogtreecommitdiff
path: root/spec/bundler
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-15 17:59:48 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-17 17:08:50 +0900
commit63d78afc2d0520cff300494fd875c905349c12a0 (patch)
tree1601888ab566f5059f74b5349c40109c0300cefc /spec/bundler
parent2e6509498c1daf3335ac6343bf59441d42011b64 (diff)
[bundler/bundler] Remove more dead code
https://github.com/bundler/bundler/commit/17d4d0de8e
Diffstat (limited to 'spec/bundler')
-rw-r--r--spec/bundler/support/helpers.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb
index 46d8eb52a2..abb4cba45e 100644
--- a/spec/bundler/support/helpers.rb
+++ b/spec/bundler/support/helpers.rb
@@ -200,11 +200,7 @@ module Spec
ENV["RUBYOPT"] = old
end
- def gem_command(command, args = "", options = {})
- if command == :exec
- args = args.gsub(/(?=")/, "\\")
- args = %("#{args}")
- end
+ def gem_command(command, args = "")
gem = ENV["BUNDLE_GEM"] || "#{Gem.ruby} -S gem --backtrace"
sys_exec("#{gem} #{command} #{args}")
end