diff options
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" |