summaryrefslogtreecommitdiff
path: root/test/cgi/test_cgi_modruby.rb
diff options
context:
space:
mode:
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 4eb02fac563..b41b9bd0079 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