about summary refs log tree commit homepage
path: root/test/unit/test_http_parser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/test_http_parser.rb')
-rw-r--r--test/unit/test_http_parser.rb14
1 files changed, 7 insertions, 7 deletions
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