diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-12 07:16:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-12 07:16:14 +0000 |
commit | 2417bd10d2fcf2e561bb777ace7fb5c6262af7c7 (patch) | |
tree | a742b26ecd4941d1c09ebee5aaf59697705bc2b3 /test/ruby/test_autoload.rb | |
parent | 871cd27c8dd54e2fac7205d91b419a8a6ed82412 (diff) |
* test/ruby/test_autoload.rb: clear autoloaded paths.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_autoload.rb')
-rw-r--r-- | test/ruby/test_autoload.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_autoload.rb b/test/ruby/test_autoload.rb index 2b37e44c3f..bfed40e9f4 100644 --- a/test/ruby/test_autoload.rb +++ b/test/ruby/test_autoload.rb @@ -151,6 +151,7 @@ p Foo::Bar end def add_autoload(path) + (@autoload_paths ||= []) << path eval <<-END class ::Object autoload :AutoloadTest, #{path.dump} @@ -159,6 +160,7 @@ p Foo::Bar end def remove_autoload_constant + $".replace($" - @autoload_paths) eval <<-END class ::Object remove_const(:AutoloadTest) |