*** /Users/felixj/Desktop/test_httprequest_orig.rb 2011-07-13 02:52:46.000000000 -0500 --- test/webrick/test_httprequest.rb 2011-07-13 02:48:55.000000000 -0500 *************** *** 3,8 **** --- 3,19 ---- require "test/unit" class TestWEBrickHTTPRequest < Test::Unit::TestCase + + def test_simple_request + msg = <<-_end_of_message_ + GET / + _end_of_message_ + + req = WEBrick::HTTPRequest.new(WEBrick::Config::HTTP) + req.parse(StringIO.new(msg)) + assert(req.meta_vars) # fails if @header was not initialized and iteration is attempted on the nil reference + end + def test_parse_09 msg = <<-_end_of_message_ GET /