# File test/test_response.rb, line 161 def test_parse_line_with_invalid_version pio = PseudoIO.new pio << "HTTP/1.1 XXX Unknown\r\n" pio << "Content-Type: text/html\r\n" assert_exception(Rucy::ParseError) { @response.parse_line(pio) } end