diff options
author | bronzdoc <lsagastume1990@gmail.com> | 2020-06-02 22:41:21 -0600 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-05 07:32:42 +0900 |
commit | de3f183c2a2da499da5d4349c82f122bef1fc68b (patch) | |
tree | 3e67781b7b9c79b03a8e03fb8da1ce3f8e3e39d2 | |
parent | 4edfc50283b3b209a008b04505d01c07b40b1eff (diff) |
[rubygems/rubygems] Use ruby_with_rubygems_in_load_path helper
https://github.com/rubygems/rubygems/commit/5e6d82b1f2
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3184
-rw-r--r-- | test/rubygems/test_project_sanity.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/rubygems/test_project_sanity.rb b/test/rubygems/test_project_sanity.rb index f3f111b25b..a53ea49ee9 100644 --- a/test/rubygems/test_project_sanity.rb +++ b/test/rubygems/test_project_sanity.rb @@ -2,7 +2,7 @@ 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 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 |