From 28d571b7cca709641d964e00e6004facb6bfcc7e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 4 Feb 2009 14:30:40 -0800 Subject: s/Mongrel/Unicorn/g Avoid conflicting with existing Mongrel libraries since we'll be incompatible and break things w/o disrupting Mongrel installations. --- test/unit/test_http_parser.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/unit/test_http_parser.rb') diff --git a/test/unit/test_http_parser.rb b/test/unit/test_http_parser.rb index 91482cd..ca1cd01 100644 --- a/test/unit/test_http_parser.rb +++ b/test/unit/test_http_parser.rb @@ -1,12 +1,12 @@ # Copyright (c) 2005 Zed A. Shaw # You can redistribute it and/or modify it under the same terms as Ruby. # -# Additional work donated by contributors. See http://mongrel.rubyforge.org/attributions.html +# Additional work donated by contributors. See http://mongrel.rubyforge.org/attributions.html # for more information. require 'test/test_helper' -include Mongrel +include Unicorn class HttpParserTest < Test::Unit::TestCase @@ -43,7 +43,7 @@ class HttpParserTest < Test::Unit::TestCase assert parser.finished? assert !parser.error? - # ref: http://thread.gmane.org/gmane.comp.lang.ruby.mongrel.devel/37/focus=45 + # ref: http://thread.gmane.org/gmane.comp.lang.ruby.Unicorn.devel/37/focus=45 # (note we got 'pen' mixed up with 'pound' in that thread, # but the gist of it is still relevant: these nasty headers are irrelevant # @@ -124,7 +124,7 @@ class HttpParserTest < Test::Unit::TestCase # then that large header names are caught 10.times do |c| get = "GET /#{rand_data(10,120)} HTTP/1.1\r\nX-#{rand_data(1024, 1024+(c*1024))}: Test\r\n\r\n" - assert_raises Mongrel::HttpParserError do + assert_raises Unicorn::HttpParserError do parser.execute({}, get, 0) parser.reset end @@ -133,7 +133,7 @@ class HttpParserTest < Test::Unit::TestCase # then that large mangled field values are caught 10.times do |c| get = "GET /#{rand_data(10,120)} HTTP/1.1\r\nX-Test: #{rand_data(1024, 1024+(c*1024), false)}\r\n\r\n" - assert_raises Mongrel::HttpParserError do + assert_raises Unicorn::HttpParserError do parser.execute({}, get, 0) parser.reset end @@ -142,7 +142,7 @@ class HttpParserTest < Test::Unit::TestCase # then large headers are rejected too get = "GET /#{rand_data(10,120)} HTTP/1.1\r\n" get << "X-Test: test\r\n" * (80 * 1024) - assert_raises Mongrel::HttpParserError do + assert_raises Unicorn::HttpParserError do parser.execute({}, get, 0) parser.reset end @@ -150,7 +150,7 @@ class HttpParserTest < Test::Unit::TestCase # finally just that random garbage gets blocked all the time 10.times do |c| get = "GET #{rand_data(1024, 1024+(c*1024), false)} #{rand_data(1024, 1024+(c*1024), false)}\r\n\r\n" - assert_raises Mongrel::HttpParserError do + assert_raises Unicorn::HttpParserError do parser.execute({}, get, 0) parser.reset end -- cgit v1.2.3-24-ge0c7