diff options
author | sorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-06 09:12:33 +0000 |
---|---|---|
committer | sorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-06 09:12:33 +0000 |
commit | 5738ab331eaa73794fb3ece9f9779b00f2288765 (patch) | |
tree | a9a9a619623804648b0bee0db8b2b8c28f6b4784 /test/cgi/test_cgi_header.rb | |
parent | eb983e86e720dbeac771c2d6a37e85383e8e0596 (diff) |
* 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
Diffstat (limited to 'test/cgi/test_cgi_header.rb')
-rw-r--r-- | test/cgi/test_cgi_header.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/cgi/test_cgi_header.rb b/test/cgi/test_cgi_header.rb index beaf17eb1b..2e074b0b22 100644 --- a/test/cgi/test_cgi_header.rb +++ b/test/cgi/test_cgi_header.rb @@ -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" |