[前][次][番号順一覧][スレッド一覧]

ruby-changes:56640

From: Nobuyoshi <ko1@a...>
Date: Wed, 24 Jul 2019 20:12:14 +0900 (JST)
Subject: [ruby-changes:56640] Nobuyoshi Nakada: dc954cbb75 (master): @@project_dir in Gem::TestCase is no longer used

https://git.ruby-lang.org/ruby.git/commit/?id=dc954cbb75

From dc954cbb75381149970e45927153829a88cbe0b5 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 24 Jul 2019 20:08:40 +0900
Subject: @@project_dir in Gem::TestCase is no longer used


diff --git a/tool/lib/test/unit/parallel.rb b/tool/lib/test/unit/parallel.rb
index d851326..730d7a7 100644
--- a/tool/lib/test/unit/parallel.rb
+++ b/tool/lib/test/unit/parallel.rb
@@ -198,11 +198,5 @@ if $0 == __FILE__ https://github.com/ruby/ruby/blob/trunk/tool/lib/test/unit/parallel.rb#L198
     end
   end
   require 'rubygems'
-  module Gem # :nodoc:
-  end
-  class Gem::TestCase < MiniTest::Unit::TestCase # :nodoc:
-    @@project_dir = File.expand_path('../../../../..', __FILE__)
-  end
-
   Test::Unit::Worker.new.run(ARGV)
 end
diff --git a/tool/test/runner.rb b/tool/test/runner.rb
index 20ae9aa..f876985 100644
--- a/tool/test/runner.rb
+++ b/tool/test/runner.rb
@@ -24,12 +24,6 @@ Dir.glob("#{src_testdir}/../gems/*/*.gemspec") https://github.com/ruby/ruby/blob/trunk/tool/test/runner.rb#L24
 
 require 'test/unit'
 
-module Gem
-end
-class Gem::TestCase < MiniTest::Unit::TestCase
-  @@project_dir = File.dirname($LOAD_PATH.last)
-end
-
 ENV["GEM_SKIP"] = ENV["GEM_HOME"] = ENV["GEM_PATH"] = "".freeze
 
 require_relative "#{tool_dir}/lib/profile_test_all" if ENV.has_key?('RUBY_TEST_ALL_PROFILE')
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]