diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-07-01 00:04:03 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-07-01 00:04:03 +0000 |
commit | a450e769f1c7f5c68799f570856d020863528d17 (patch) | |
tree | 9a92e903be548ecb9728e4c26a0c29d9cd70c3c4 /actionpack/test/controller | |
parent | d0ff4ec1936b6888ce199ef5131c3a2d866a968c (diff) | |
download | rails-a450e769f1c7f5c68799f570856d020863528d17.tar.gz rails-a450e769f1c7f5c68799f570856d020863528d17.tar.bz2 rails-a450e769f1c7f5c68799f570856d020863528d17.zip |
Allow you to render views with periods in the name. Closes #8076 [norbert]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7158 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index 8b4149dcb4..553022e3d9 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -135,6 +135,10 @@ class TestController < ActionController::Base def partial render :partial => 'partial' end + + def partial_dot_html + render :partial => 'partial.html.erb' + end def partial_as_rjs render :update do |page| @@ -393,6 +397,11 @@ class RenderTest < Test::Unit::TestCase assert_equal 'partial html', @response.body end + def test_should_render_html_partial_with_dot + get :partial_dot_html + assert_equal 'partial html', @response.body + end + def test_should_render_html_formatted_partial_with_rjs xhr :get, :partial_as_rjs assert_equal %(Element.replace("foo", "partial html");), @response.body |