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

support multi-run for ruby/test_autoload.rb

It requires more cleanup.
This commit is contained in:
Koichi Sasada 2020-01-28 11:58:09 +09:00
parent 8dbd5c76a0
commit b17bab7472

View file

@ -445,5 +445,6 @@ p Foo::Bar
def remove_autoload_constant
$".replace($" - @autoload_paths)
::Object.class_eval {remove_const(:AutoloadTest)}
TestAutoload.class_eval {remove_const(:AutoloadTest)} if defined? TestAutoload::AutoloadTest
end
end