mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_gem_commands_setup_command.rb: BUNDLER_VERS
* test/rubygems/test_gem_commands_setup_command.rb: run bundled gem command, instead of installed one. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4695019a1c
commit
7410e17f07
1 changed files with 3 additions and 1 deletions
|
|
@ -6,7 +6,9 @@ require 'rubygems/commands/setup_command'
|
|||
|
||||
class TestGemCommandsSetupCommand < Gem::TestCase
|
||||
|
||||
BUNDLER_VERS = `gem list -e bundler`[/([^() ]+)\)\Z/, 1] || "1.16.1"
|
||||
gem = File.exist?(gem = File.expand_path("bin/gem", @@project_dir)) ?
|
||||
[ENV["RUBY"] || "ruby", gem] : ["gem"]
|
||||
BUNDLER_VERS = IO.popen(gem + %w[list -e bundler], &:read)[/([^() ]+)\)\Z/, 1] || "1.16.1"
|
||||
|
||||
def setup
|
||||
super
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue