From 63d78afc2d0520cff300494fd875c905349c12a0 Mon Sep 17 00:00:00 2001 From: David Rodríguez Date: Thu, 15 Aug 2019 17:59:48 +0200 Subject: [bundler/bundler] Remove more dead code https://github.com/bundler/bundler/commit/17d4d0de8e --- spec/bundler/support/helpers.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'spec') 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 -- cgit v1.2.3