diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-08 03:33:30 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-08 03:33:30 +0000 |
commit | 8a2fa23cd1bd0c91ecef8ff20c3d6cbe11d6734d (patch) | |
tree | 323c298ff357c084169bf43a8509c68bb940740a /actionpack/test | |
parent | b3d9e2372b63d6273d73765231e9849bafee178b (diff) | |
download | rails-8a2fa23cd1bd0c91ecef8ff20c3d6cbe11d6734d.tar.gz rails-8a2fa23cd1bd0c91ecef8ff20c3d6cbe11d6734d.tar.bz2 rails-8a2fa23cd1bd0c91ecef8ff20c3d6cbe11d6734d.zip |
Add tests for [7727]. Closes #6090 [dkubb, mpalmer, tarmo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7793 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/test_test.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/actionpack/test/controller/test_test.rb b/actionpack/test/controller/test_test.rb index 018b342b68..56c0a90831 100644 --- a/actionpack/test/controller/test_test.rb +++ b/actionpack/test/controller/test_test.rb @@ -25,6 +25,10 @@ class TestTest < Test::Unit::TestCase render :text => request.request_uri end + def test_query_string + render :text => request.query_string + end + def test_html_output render :text => <<HTML <html> @@ -143,6 +147,17 @@ XML assert_equal "/explicit/uri", @response.body end + def test_process_with_query_string + process :test_query_string, :q => 'test' + assert_equal "q=test", @response.body + end + + def test_process_with_query_string_with_explicit_uri + @request.set_REQUEST_URI "/explicit/uri?q=test?extra=question" + process :test_query_string + assert_equal "q=test?extra=question", @response.body + end + def test_multiple_calls process :test_only_one_param, :left => true assert_equal "OK", @response.body |