aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/render_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller/render_test.rb')
-rw-r--r--actionpack/test/controller/render_test.rb9
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