summaryrefslogtreecommitdiff
path: root/test/cgi/test_cgi_modruby.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-14 06:52:41 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-14 06:52:41 +0000
commitb3a4461df2c78b4828cf344789b80e3c3ebedd14 (patch)
tree6d1016d68392f7efa9f1bb98794e4a3e7fe879b8 /test/cgi/test_cgi_modruby.rb
parent9933a6019f8e867a546723e983e0a50593d35cbd (diff)
Suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/cgi/test_cgi_modruby.rb')
-rw-r--r--test/cgi/test_cgi_modruby.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cgi/test_cgi_modruby.rb b/test/cgi/test_cgi_modruby.rb
index 4eb02fac56..b41b9bd007 100644
--- a/test/cgi/test_cgi_modruby.rb
+++ b/test/cgi/test_cgi_modruby.rb
@@ -71,7 +71,7 @@ class CGIModrubyTest < Test::Unit::TestCase
'status' => '200 OK',
'location' => 'http://www.example.com/',
}
- actual = cgi.header(options)
+ cgi.header(options)
assert_equal('200 OK', req.status_line) # should be '302 Found' ?
assert_equal(302, req.status)
assert_equal('http://www.example.com/', req.headers_out['location'])
@@ -113,6 +113,7 @@ class Apache #:nodoc:
def hash.add(name, value)
(self[name] ||= []) << value
end
+ @http_header = nil
@headers_out = hash
@status_line = nil
@status = nil