aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/render_test.rb
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2007-04-12 20:25:32 +0000
committerRick Olson <technoweenie@gmail.com>2007-04-12 20:25:32 +0000
commit6351e0a541698bdaca348ad78bc9f7b25f6d56d6 (patch)
treedb2ab82ada8dc23e949d69371841fae6ebfe8936 /actionpack/test/controller/render_test.rb
parentf5b8fc0335d4f5e4e5a3c7d7e4dab14e449403cc (diff)
downloadrails-6351e0a541698bdaca348ad78bc9f7b25f6d56d6.tar.gz
rails-6351e0a541698bdaca348ad78bc9f7b25f6d56d6.tar.bz2
rails-6351e0a541698bdaca348ad78bc9f7b25f6d56d6.zip
The default respond_to blocks don't set a specific extension anymore, so that both 'show.rjs' and 'show.js.rjs' will work. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6517 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/render_test.rb')
-rw-r--r--actionpack/test/controller/render_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb
index 7175b4f798..cba21fc4cb 100644
--- a/actionpack/test/controller/render_test.rb
+++ b/actionpack/test/controller/render_test.rb
@@ -361,6 +361,12 @@ class RenderTest < Test::Unit::TestCase
get :formatted_xml_erb
assert_equal '<test>passed formatted html erb</test>', @response.body
end
+
+ def test_should_render_formatted_html_erb_template_with_faulty_accepts_header
+ @request.env["HTTP_ACCEPT"] = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, appliction/x-shockwave-flash, */*"
+ get :formatted_xml_erb
+ assert_equal '<test>passed formatted html erb</test>', @response.body
+ end
protected
def assert_deprecated_render(&block)