зеркало из https://github.com/github/ruby.git
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:
Родитель
c749e4fca2
Коммит
ed55083246
|
@ -1,3 +1,8 @@
|
|||
Wed Jul 15 04:22:54 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* test/cgi/test_cgi_multipart.rb (CGIMultipartTest#_prepare):
|
||||
set tempfile name with literal.
|
||||
|
||||
Tue Jul 14 21:53:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/io/nonblock: moved from ext/io/wait/lib.
|
||||
|
|
|
@ -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()
|
||||
|
|
Загрузка…
Ссылка в новой задаче