diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-09-18 16:32:41 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-09-18 16:32:41 +0000 |
commit | ec030534b1d4786cc953ee95c912a72f650f5338 (patch) | |
tree | 1b551f1ea8ef0e864cf3076bae5995e882c4c46f /actionpack/test/controller | |
parent | 8f2221da85ca1d7a1fa08d6f81e7a6fbb711051d (diff) | |
download | rails-ec030534b1d4786cc953ee95c912a72f650f5338.tar.gz rails-ec030534b1d4786cc953ee95c912a72f650f5338.tar.bz2 rails-ec030534b1d4786cc953ee95c912a72f650f5338.zip |
test default content type for implicit rjs template render
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5143 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/content_type_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/test/controller/content_type_test.rb b/actionpack/test/controller/content_type_test.rb index f2708acc0a..6f0618da0e 100644 --- a/actionpack/test/controller/content_type_test.rb +++ b/actionpack/test/controller/content_type_test.rb @@ -25,6 +25,9 @@ class ContentTypeController < ActionController::Base def render_default_for_rxml end + def render_default_for_rjs + end + def render_change_for_rxml response.content_type = Mime::HTML render :action => "render_default_for_rxml" @@ -100,6 +103,12 @@ class ContentTypeTest < Test::Unit::TestCase assert_equal "utf-8", @response.charset end + def test_default_for_rjs + xhr :post, :render_default_for_rjs + assert_equal Mime::JS, @response.content_type + assert_equal "utf-8", @response.charset + end + def test_change_for_rxml get :render_change_for_rxml assert_equal Mime::HTML, @response.content_type |