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

Set tempfile name with literal.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2009-07-14 19:26:59 +00:00
parent c749e4fca2
commit ed55083246
2 changed files with 7 additions and 2 deletions

View file

@ -136,9 +136,9 @@ class CGIMultipartTest < Test::Unit::TestCase
ENV['REQUEST_METHOD'] = 'POST'
## set $stdin
tmpfile = if RUBY_VERSION >="1.9"
Tempfile.new(self.name, :binmode => true)
Tempfile.new('test_cgi_multipart', :binmode => true)
else
Tempfile.new(self.name)
Tempfile.new('test_cgi_multipart')
end
tmpfile << input
tmpfile.rewind()