From db0a4df62c2df97494777e151d4b33e1eced9ecd Mon Sep 17 00:00:00 2001 From: usa Date: Thu, 8 Feb 2018 07:34:41 +0000 Subject: revert r62302 and force to define the version constant git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rubygems/test_gem_commands_setup_command.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/rubygems/test_gem_commands_setup_command.rb b/test/rubygems/test_gem_commands_setup_command.rb index c9f21b496a..ebee67e677 100644 --- a/test/rubygems/test_gem_commands_setup_command.rb +++ b/test/rubygems/test_gem_commands_setup_command.rb @@ -6,9 +6,7 @@ require 'rubygems/commands/setup_command' class TestGemCommandsSetupCommand < Gem::TestCase - 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" if Gem::USE_BUNDLER_FOR_GEMDEPS + BUNDLER_VERS = "1.16.1" def setup super @@ -25,8 +23,6 @@ class TestGemCommandsSetupCommand < Gem::TestCase File.open 'lib/rubygems/test_case.rb', 'w' do |io| io.puts '# test_case.rb' end File.open 'lib/rubygems/ssl_certs/rubygems.org/foo.pem', 'w' do |io| io.puts 'PEM' end - return unless Gem::USE_BUNDLER_FOR_GEMDEPS - FileUtils.mkdir_p 'bundler/exe' FileUtils.mkdir_p 'bundler/lib/bundler' -- cgit v1.2.3