1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

remove temporally files explicitly.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-09-13 17:59:49 +00:00
parent 119e97479d
commit 242e2aaec2

View file

@ -28,11 +28,12 @@ class TestArgf < Test::Unit::TestCase
@tmps.each {|t|
bak = t.path + ".bak"
File.unlink bak if File.file? bak
t.close(true)
}
end
def make_tempfile
t = Tempfile.new("argf-foo")
t = Tempfile.new("argf-qux")
t.puts "foo"
t.puts "bar"
t.puts "baz"