diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-14 00:25:24 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-14 00:25:24 +0000 |
commit | 193edfbfdbaffff177c44f70f15450390741b7d2 (patch) | |
tree | 54da535d5b1a89177d480b95b246dfa5b2a756eb /actionpack/test/controller | |
parent | 9982578efb5834a30381b51063fcf347540a0fd3 (diff) | |
download | rails-193edfbfdbaffff177c44f70f15450390741b7d2.tar.gz rails-193edfbfdbaffff177c44f70f15450390741b7d2.tar.bz2 rails-193edfbfdbaffff177c44f70f15450390741b7d2.zip |
Removed the reliance on PATH_INFO as it was causing problems for caching and inhibited the new non-vhost support #822 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@901 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/request_test.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/actionpack/test/controller/request_test.rb b/actionpack/test/controller/request_test.rb index 513828462e..54ff84151a 100644 --- a/actionpack/test/controller/request_test.rb +++ b/actionpack/test/controller/request_test.rb @@ -54,17 +54,6 @@ class RequestTest < Test::Unit::TestCase assert_equal "/", @request.path end - def test_path_info - @request.env["PATH_INFO"] = "/path/of/some/uri" - assert_equal "/path/of/some/uri", @request.path_info - assert_equal "/path/of/some/uri", @request.path - - # PATH_INFO actually has a .html suffix on many servers. But we don't want Rails to see the .html part. - @request.env["PATH_INFO"] = "/path/of/some/uri.html" - assert_equal "/path/of/some/uri", @request.path_info - assert_equal "/path/of/some/uri", @request.path - end - def test_host_with_port @request.env['HTTP_HOST'] = "rubyonrails.org:8080" assert_equal "rubyonrails.org:8080", @request.host_with_port |