diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-15 18:13:36 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-16 08:43:49 +0200 |
commit | 6ca0271b27577fb1bb94188e5473b91b623410b7 (patch) | |
tree | 22df165142de3073f8181d028db10f3849acbc55 | |
parent | ac3e8db658c528299109127368f667913af3bb88 (diff) | |
download | bundler-6ca0271b27577fb1bb94188e5473b91b623410b7.tar.gz |
Reuse `gem_bin` helper inside `gem_command`
The logic for choosing `gem_bin` should work here too even if it's not
identical.
-rw-r--r-- | spec/support/helpers.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb index abb4cba45e..70604d7af4 100644 --- a/spec/support/helpers.rb +++ b/spec/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 |