ruby-changes:23260
From: nobu <ko1@a...>
Date: Thu, 12 Apr 2012 16:16:24 +0900 (JST)
Subject: [ruby-changes:23260] nobu:r35311 (trunk): * test/ruby/test_autoload.rb: clear autoloaded paths.
nobu 2012-04-12 16:16:14 +0900 (Thu, 12 Apr 2012) New Revision: 35311 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35311 Log: * test/ruby/test_autoload.rb: clear autoloaded paths. Modified files: trunk/test/ruby/test_autoload.rb Index: test/ruby/test_autoload.rb =================================================================== --- test/ruby/test_autoload.rb (revision 35310) +++ test/ruby/test_autoload.rb (revision 35311) @@ -151,6 +151,7 @@ end def add_autoload(path) + (@autoload_paths ||= []) << path eval <<-END class ::Object autoload :AutoloadTest, #{path.dump} @@ -159,6 +160,7 @@ end def remove_autoload_constant + $".replace($" - @autoload_paths) eval <<-END class ::Object remove_const(:AutoloadTest) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/