aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/request_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller/request_test.rb')
-rw-r--r--actionpack/test/controller/request_test.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/actionpack/test/controller/request_test.rb b/actionpack/test/controller/request_test.rb
index c31cdd460b..82a1d6bb70 100644
--- a/actionpack/test/controller/request_test.rb
+++ b/actionpack/test/controller/request_test.rb
@@ -54,6 +54,12 @@ 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
+ end
+
def test_host_with_port
@request.env['HTTP_HOST'] = "rubyonrails.org:8080"
assert_equal "rubyonrails.org:8080", @request.host_with_port
@@ -67,4 +73,4 @@ class RequestTest < Test::Unit::TestCase
@request.port = 81
assert_equal "rubyonrails.org:81", @request.host_with_port
end
-end \ No newline at end of file
+end