From a450e769f1c7f5c68799f570856d020863528d17 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Sun, 1 Jul 2007 00:04:03 +0000 Subject: 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 --- actionpack/test/controller/render_test.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'actionpack/test') 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 -- cgit v1.2.3