summaryrefslogtreecommitdiff
path: root/spec/bundler
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-15 18:13:36 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-17 17:08:50 +0900
commit122bc65042bb53cd66ff681513ea7f5152536875 (patch)
tree32470dcd0914b917395e22de82c9ea8186ba5eca /spec/bundler
parent30a4ec1fee1363f31f93970c3cd809a6fc139140 (diff)
downloadruby-122bc65042bb53cd66ff681513ea7f5152536875.tar.gz
[bundler/bundler] Reuse `gem_bin` helper inside `gem_command`
The logic for choosing `gem_bin` should work here too even if it's not identical. https://github.com/bundler/bundler/commit/6ca0271b27
Diffstat (limited to 'spec/bundler')
-rw-r--r--spec/bundler/support/helpers.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb
index abb4cba45e..70604d7af4 100644
--- a/spec/bundler/support/helpers.rb
+++ b/spec/bundler/support/helpers.rb
@@ -201,8 +201,7 @@ module Spec
end
def gem_command(command, args = "")
- gem = ENV["BUNDLE_GEM"] || "#{Gem.ruby} -S gem --backtrace"
- sys_exec("#{gem} #{command} #{args}")
+ sys_exec("#{Path.gem_bin} #{command} #{args}")
end
bang :gem_command