mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
d5e9b69629
commit
bc893dcf07
2 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Jul 18 22:43:02 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/ruby/test_autoload.rb: remove temporally files early.
|
||||
|
||||
Wed Jul 18 21:59:46 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/ruby/test_argf.rb: use temporally directory.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue