# File test/test_lang.rb, line 137 def test_HEAD_302_Found @request.method = 'HEAD' @request.path = '/' @request.version = 'HTTP/1.1' @request.set_header('Accept-Language', 'ja, en;q=0.5') @doc.publish('', @request, @response, @logger) assert_equal(0, @publish_call) assert_equal('HTTP/1.1', @response.version) assert_equal(302, @response.status) assert_equal('Found', @response.reason) assert_equal('http://server:8080/index_ja.html', @response.header('Location')) assert(@messg_body.empty?) end