diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-12-28 17:05:12 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-12-28 17:07:13 +0000 |
commit | fec0ea9d6d4ca56a09e3e83002c38d69c8ad924e (patch) | |
tree | f8048acb56e43fb58d1762ac678aa6048b06b5c0 /actionpack/test | |
parent | c0c79f779c990f9e53c9b600291801fdf0bbe56b (diff) | |
download | rails-fec0ea9d6d4ca56a09e3e83002c38d69c8ad924e.tar.gz rails-fec0ea9d6d4ca56a09e3e83002c38d69c8ad924e.tar.bz2 rails-fec0ea9d6d4ca56a09e3e83002c38d69c8ad924e.zip |
Request#env['SERVER_NAME'] does not contain port number
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/rack_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/rack_test.rb b/actionpack/test/controller/rack_test.rb index 406e2b2818..31bff4ae6d 100644 --- a/actionpack/test/controller/rack_test.rb +++ b/actionpack/test/controller/rack_test.rb @@ -4,7 +4,7 @@ class BaseRackTest < Test::Unit::TestCase def setup @env = { "HTTP_MAX_FORWARDS" => "10", - "SERVER_NAME" => "glu.ttono.us:8007", + "SERVER_NAME" => "glu.ttono.us", "FCGI_ROLE" => "RESPONDER", "AUTH_TYPE" => "Basic", "HTTP_X_FORWARDED_HOST" => "glu.ttono.us", @@ -145,7 +145,7 @@ class RackRequestTest < BaseRackTest assert_equal "kevin", @request.remote_user assert_equal :get, @request.request_method assert_equal "/dispatch.fcgi", @request.script_name - assert_equal "glu.ttono.us:8007", @request.server_name + assert_equal "glu.ttono.us", @request.server_name assert_equal 8007, @request.server_port assert_equal "HTTP/1.1", @request.server_protocol assert_equal "lighttpd", @request.server_software |