From 2417bd10d2fcf2e561bb777ace7fb5c6262af7c7 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 12 Apr 2012 07:16:14 +0000 Subject: * 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 --- test/ruby/test_autoload.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby/test_autoload.rb') 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) -- cgit v1.2.3