mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/cgi/test_cgi_header.rb(test_cgi_header_nph): Adding space after
comma. * test/cgi/test_cgi_header.rb(test_cgi_header_nph): Remove variable `now`. Suppress warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eb983e86e7
commit
5738ab331e
2 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
|||
Wed Jul 6 18:10:13 2011 Shota Fukumori <sorah@tubusu.net>
|
||||
|
||||
* test/cgi/test_cgi_header.rb(test_cgi_header_nph): Adding space after
|
||||
comma.
|
||||
|
||||
* test/cgi/test_cgi_header.rb(test_cgi_header_nph): Remove variable
|
||||
`now`. Suppress warning.
|
||||
|
||||
Wed Jul 6 12:18:09 2011 Shota Fukumori <sorah@tubusu.net>
|
||||
|
||||
* test/cgi/test_cgi_header.rb(test_cgi_header_nph): Fix bug depends to
|
||||
|
|
|
@ -134,7 +134,6 @@ class CGIHeaderTest < Test::Unit::TestCase
|
|||
## 'nph' is true
|
||||
ENV['SERVER_SOFTWARE'] = 'Apache 2.2.0'
|
||||
actual1 = cgi.header('nph'=>true)
|
||||
now = Time.now
|
||||
## when old IIS, NPH-mode is forced
|
||||
ENV['SERVER_SOFTWARE'] = 'IIS/4.0'
|
||||
actual2 = cgi.header
|
||||
|
@ -144,9 +143,9 @@ class CGIHeaderTest < Test::Unit::TestCase
|
|||
actual4 = cgi.header
|
||||
actual5 = cgi.header('status'=>'REDIRECT', 'location'=>'http://www.example.com/')
|
||||
date = /^Date: [A-Z][a-z]{2}, \d{2} [A-Z][a-z]{2} \d{4} \d\d:\d\d:\d\d GMT\r\n/
|
||||
[actual1,actual2,actual3].each do |actual|
|
||||
assert_match(date,actual)
|
||||
actual.sub!(date,"Date: DATE_IS_REMOVED\r\n")
|
||||
[actual1, actual2, actual3].each do |actual|
|
||||
assert_match(date, actual)
|
||||
actual.sub!(date, "Date: DATE_IS_REMOVED\r\n")
|
||||
end
|
||||
## assertion
|
||||
expected = "HTTP/1.1 200 OK\r\n"
|
||||
|
|
Loading…
Reference in a new issue