# File test/test_sample.rb, line 47 def test_HEAD @request.method ='HEAD' @request.uri = '/' @request.version = 'HTTP/1.1' @sample.publish('', @request, @response, self) assert_equal('HTTP/1.1', @messg_head.version) assert_equal(200, @messg_head.status) assert_equal('OK', @messg_head.reason) assert_nil(@messg_head.doc_path) assert_nil(@messg_head.local_path) assert_equal('text/html', @messg_head.header('Content-Type')) assert(@messg_body.empty?) end