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:
parent
c749e4fca2
commit
ed55083246
2 changed files with 7 additions and 2 deletions
|
@ -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>
|
Tue Jul 14 21:53:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ext/io/nonblock: moved from ext/io/wait/lib.
|
* ext/io/nonblock: moved from ext/io/wait/lib.
|
||||||
|
|
|
@ -136,9 +136,9 @@ class CGIMultipartTest < Test::Unit::TestCase
|
||||||
ENV['REQUEST_METHOD'] = 'POST'
|
ENV['REQUEST_METHOD'] = 'POST'
|
||||||
## set $stdin
|
## set $stdin
|
||||||
tmpfile = if RUBY_VERSION >="1.9"
|
tmpfile = if RUBY_VERSION >="1.9"
|
||||||
Tempfile.new(self.name, :binmode => true)
|
Tempfile.new('test_cgi_multipart', :binmode => true)
|
||||||
else
|
else
|
||||||
Tempfile.new(self.name)
|
Tempfile.new('test_cgi_multipart')
|
||||||
end
|
end
|
||||||
tmpfile << input
|
tmpfile << input
|
||||||
tmpfile.rewind()
|
tmpfile.rewind()
|
||||||
|
|
Loading…
Add table
Reference in a new issue