aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-09 10:20:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-09 10:20:38 +0000
commitd459db1871ed1c918b5e7abf8b2dc3e02c921814 (patch)
treea7dc36ad35314fb41d13f413c623e8e5ef5d782a /spec
parentef867c7525f97ec88b69b5d77db74169fe12294c (diff)
downloadruby-d459db1871ed1c918b5e7abf8b2dc3e02c921814.tar.gz
rubygems_ext.rb: use BUNDLE_GEM
* spec/bundler/support/rubygems_ext.rb (install_gems): use BUNDLE_GEM set in Makefile.in instead of the installed command. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/support/rubygems_ext.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/support/rubygems_ext.rb b/spec/bundler/support/rubygems_ext.rb
index b484d63eab..5229192165 100644
--- a/spec/bundler/support/rubygems_ext.rb
+++ b/spec/bundler/support/rubygems_ext.rb
@@ -56,7 +56,7 @@ module Spec
no_reqs.map!(&:first)
reqs.map! {|name, req| "'#{name}:#{req}'" }
deps = reqs.concat(no_reqs).join(" ")
- cmd = "gem install #{deps} --no-rdoc --no-ri --conservative"
+ cmd = "#{ENV['BUNDLE_GEM'] || 'gem'} install #{deps} --no-rdoc --no-ri --conservative"
puts cmd
system(cmd) || raise("Installing gems #{deps} for the tests to use failed!")
end