# File test/test_lang.rb, line 108 def test_GET_302_Found @request.method = 'GET' @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