aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_autoload.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-18 13:43:22 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-18 13:43:22 +0000
commitbc893dcf0753e5477170de2df476ed665f3e0b95 (patch)
tree89142df686b819dee05b463a79ffaf7b0e3c36c0 /test/ruby/test_autoload.rb
parentd5e9b69629c9172c15944255e10c3390be0a48c1 (diff)
downloadruby-bc893dcf0753e5477170de2df476ed665f3e0b95.tar.gz
* test/ruby/test_autoload.rb: remove temporally files early.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_autoload.rb')
-rw-r--r--test/ruby/test_autoload.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ruby/test_autoload.rb b/test/ruby/test_autoload.rb
index bfed40e9f4..8ca2187970 100644
--- a/test/ruby/test_autoload.rb
+++ b/test/ruby/test_autoload.rb
@@ -69,6 +69,8 @@ p Foo::Bar
ensure
remove_autoload_constant
end
+ ensure
+ file.unlink
end
def test_threaded_accessing_constant
@@ -85,6 +87,8 @@ p Foo::Bar
ensure
remove_autoload_constant
end
+ ensure
+ file.unlink
end
def test_threaded_accessing_inner_constant
@@ -101,6 +105,8 @@ p Foo::Bar
ensure
remove_autoload_constant
end
+ ensure
+ file.unlink
end
def test_nameerror_when_autoload_did_not_define_the_constant
@@ -115,6 +121,8 @@ p Foo::Bar
ensure
remove_autoload_constant
end
+ ensure
+ file.unlink
end
def test_override_autoload
@@ -128,6 +136,8 @@ p Foo::Bar
ensure
remove_autoload_constant
end
+ ensure
+ file.unlink
end
def test_override_while_autoloading
@@ -148,6 +158,8 @@ p Foo::Bar
ensure
remove_autoload_constant
end
+ ensure
+ file.unlink
end
def add_autoload(path)