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

[rubygems/rubygems] Make sure rubygems/package can be directly required reliably

https://github.com/rubygems/rubygems/commit/73c199b087
This commit is contained in:
bronzdoc 2020-05-31 00:06:06 -06:00 committed by Hiroshi SHIBATA
parent 8e5fe13c08
commit 4edfc50283
Notes: git 2020-06-05 07:33:47 +09:00
2 changed files with 7 additions and 0 deletions

View file

@ -42,6 +42,7 @@
# #files are the files in the .gem tar file, not the Ruby files in the gem
# #extract_files and #contents automatically call #verify
require "rubygems"
require 'rubygems/security'
require 'rubygems/specification'
require 'rubygems/user_interaction'

View file

@ -12,4 +12,10 @@ class TestProjectSanity < Minitest::Test
assert status.success?, "Expected Manifest.txt to be up to date, but it's not. Run `rake update_manifest` to sync it."
end
def test_require_rubygems_package
_, status = Open3.capture2e("ruby -v --disable-gems -I 'lib' -e 'require \"rubygems/package\"'")
assert status.success?
end
end