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

ruby-changes:61103

From: Brandon <ko1@a...>
Date: Fri, 8 May 2020 14:14:13 +0900 (JST)
Subject: [ruby-changes:61103] 1635394347 (master): [rubygems/rubygems] Update test_realworld_default_gem to use rubygems project sources

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

From 163539434701235b46ad14e10d573c0b85cb6b50 Mon Sep 17 00:00:00 2001
From: Brandon Fish <brandon.j.fish@o...>
Date: Wed, 8 Apr 2020 12:18:21 -0500
Subject: [rubygems/rubygems] Update test_realworld_default_gem to use rubygems
 project sources

https://github.com/rubygems/rubygems/commit/7506f7eb07

diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb
index e6c69c8..6297f86 100644
--- a/test/rubygems/test_require.rb
+++ b/test/rubygems/test_require.rb
@@ -391,7 +391,8 @@ class TestGemRequire < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_require.rb#L391
       require "json"
       puts Gem.loaded_specs["json"]
     RUBY
-    output = Gem::Util.popen(Gem.ruby, "-e", cmd).strip
+    rubygems_libdir = File.expand_path('../../../lib', __FILE__)
+    output = Gem::Util.popen(Gem.ruby, "-I#{rubygems_libdir}", "-e", cmd).strip
     refute_empty output
   end
 
-- 
cgit v0.10.2


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

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