aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/mime_responds_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-05-18 06:24:50 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-05-18 06:24:50 +0000
commitd2ed32d5929f9d837280e2354e9a7e5c99fc445f (patch)
tree7ac2c4e932b825d2874b0bedc6e2a7766ac3d71a /actionpack/test/controller/mime_responds_test.rb
parentb6541b8dcc6df9c92d946e1f76ec03f448d7fba4 (diff)
downloadrails-d2ed32d5929f9d837280e2354e9a7e5c99fc445f.tar.gz
rails-d2ed32d5929f9d837280e2354e9a7e5c99fc445f.tar.bz2
rails-d2ed32d5929f9d837280e2354e9a7e5c99fc445f.zip
Parse url-encoded and multipart requests ourselves instead of delegating to CGI.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6764 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/mime_responds_test.rb')
-rw-r--r--actionpack/test/controller/mime_responds_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/test/controller/mime_responds_test.rb b/actionpack/test/controller/mime_responds_test.rb
index d8d7c64ce0..c1588f4fc4 100644
--- a/actionpack/test/controller/mime_responds_test.rb
+++ b/actionpack/test/controller/mime_responds_test.rb
@@ -232,11 +232,13 @@ class MimeControllerTest < Test::Unit::TestCase
assert_equal "<p>Hello world!</p>\n", @response.body
end
- def test_with_content_type
+ def test_with_atom_content_type
@request.env["CONTENT_TYPE"] = "application/atom+xml"
get :made_for_content_type
assert_equal "ATOM", @response.body
+ end
+ def test_with_rss_content_type
@request.env["CONTENT_TYPE"] = "application/rss+xml"
get :made_for_content_type
assert_equal "RSS", @response.body