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

[rubygems/rubygems] Make test also assert the gems that it should load

https://github.com/rubygems/rubygems/commit/a6375920bf
This commit is contained in:
David Rodríguez 2019-04-03 15:11:14 +02:00 committed by Hiroshi SHIBATA
parent bb2a65800d
commit d4feeb1936
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -66,6 +66,7 @@ class TestGemRequire < Gem::TestCase
assert_require 'test_gem_require_a' assert_require 'test_gem_require_a'
assert_require 'b/c' # this should be required from -I assert_require 'b/c' # this should be required from -I
assert_equal "world", ::Object::HELLO assert_equal "world", ::Object::HELLO
assert_equal %w(a-1 b-1), loaded_spec_names
ensure ensure
$LOAD_PATH.replace lp $LOAD_PATH.replace lp
Object.send :remove_const, :HELLO if Object.const_defined? :HELLO Object.send :remove_const, :HELLO if Object.const_defined? :HELLO