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:
parent
8dbd5c76a0
commit
b17bab7472
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue