From 5738ab331eaa73794fb3ece9f9779b00f2288765 Mon Sep 17 00:00:00 2001 From: sorah Date: Wed, 6 Jul 2011 09:12:33 +0000 Subject: [PATCH] * 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 --- ChangeLog | 8 ++++++++ test/cgi/test_cgi_header.rb | 7 +++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index c75856ab65..8e1601f709 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Wed Jul 6 18:10:13 2011 Shota Fukumori + + * 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 * test/cgi/test_cgi_header.rb(test_cgi_header_nph): Fix bug depends to 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"