1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Use ruby_with_rubygems_in_load_path helper

https://github.com/rubygems/rubygems/commit/5e6d82b1f2
This commit is contained in:
bronzdoc 2020-06-02 22:41:21 -06:00 committed by Hiroshi SHIBATA
parent 4edfc50283
commit de3f183c2a
Notes: git 2020-06-05 07:33:47 +09:00

View file

@ -2,7 +2,7 @@
require "open3" require "open3"
class TestProjectSanity < Minitest::Test class TestProjectSanity < Gem::TestCase
def test_manifest_is_up_to_date def test_manifest_is_up_to_date
skip unless File.exist?(File.expand_path("../../../Rakefile", __FILE__)) skip unless File.exist?(File.expand_path("../../../Rakefile", __FILE__))
@ -13,9 +13,11 @@ class TestProjectSanity < Minitest::Test
end end
def test_require_rubygems_package 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
end end