ruby-changes:61533
From: bronzdoc <ko1@a...>
Date: Fri, 5 Jun 2020 07:34:13 +0900 (JST)
Subject: [ruby-changes:61533] de3f183c2a (master): [rubygems/rubygems] Use ruby_with_rubygems_in_load_path helper
https://git.ruby-lang.org/ruby.git/commit/?id=de3f183c2a From de3f183c2a2da499da5d4349c82f122bef1fc68b Mon Sep 17 00:00:00 2001 From: bronzdoc <lsagastume1990@g...> Date: Tue, 2 Jun 2020 22:41:21 -0600 Subject: [rubygems/rubygems] Use ruby_with_rubygems_in_load_path helper https://github.com/rubygems/rubygems/commit/5e6d82b1f2 diff --git a/test/rubygems/test_project_sanity.rb b/test/rubygems/test_project_sanity.rb index f3f111b..a53ea49 100644 --- a/test/rubygems/test_project_sanity.rb +++ b/test/rubygems/test_project_sanity.rb @@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_project_sanity.rb#L2 require "open3" -class TestProjectSanity < Minitest::Test +class TestProjectSanity < Gem::TestCase def test_manifest_is_up_to_date skip unless File.exist?(File.expand_path("../../../Rakefile", __FILE__)) @@ -13,9 +13,11 @@ class TestProjectSanity < Minitest::Test https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_project_sanity.rb#L13 end def test_require_rubygems_package - _, status = Open3.capture2e("ruby -v --disable-gems -I 'lib' -e 'require \"rubygems/package\"'") + require "rubygems/test_case" - assert status.success? + err, status = Open3.capture2e(*ruby_with_rubygems_in_load_path, "--disable-gems", "-e", "'require \"rubygems/package\"'") + + assert status.success?, err end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/