summaryrefslogtreecommitdiff
path: root/test/cgi
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 16:17:13 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 16:17:13 +0000
commit9e9fcfeef4db34730ceca52a0a250cbd499c6df8 (patch)
tree2514f35acd015a0408c9a5109883cd1085f0c9fc /test/cgi
parent592c6ba3b39d5803ba45f7c69f5ab2086629d653 (diff)
Use Tempfile#close!.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/cgi')
-rw-r--r--test/cgi/test_cgi_multipart.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cgi/test_cgi_multipart.rb b/test/cgi/test_cgi_multipart.rb
index 627f166..7461faa 100644
--- a/test/cgi/test_cgi_multipart.rb
+++ b/test/cgi/test_cgi_multipart.rb
@@ -118,7 +118,7 @@ class CGIMultipartTest < Test::Unit::TestCase
$stdin.close() if $stdin.is_a?(Tempfile)
$stdin = STDIN
@tempfiles.each {|t|
- t.close(true)
+ t.close!
}
end
@@ -179,7 +179,7 @@ class CGIMultipartTest < Test::Unit::TestCase
cgi.params.each {|name, vals|
vals.each {|val|
if val.kind_of?(Tempfile) && val.path
- val.close(true)
+ val.close!
end
}
}
@@ -330,7 +330,7 @@ class CGIMultipartTest < Test::Unit::TestCase
cgi = RUBY_VERSION>="1.9" ? CGI.new(:accept_charset=>"UTF-8") : CGI.new
assert_equal(cgi['foo'], 'bar')
assert_equal(cgi['file'].read, 'b'*10134)
- cgi['file'].close(true) if cgi['file'].kind_of? Tempfile
+ cgi['file'].close! if cgi['file'].kind_of? Tempfile
end
def test_cgi_multipart_without_tempfile