diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb
index c22702acd0aae0d46d39710858831580a37e62d7..23f90c6243d9f6798a400b5ba24628a7330718a4 100644
--- a/actionpack/test/controller/render_test.rb
+++ b/actionpack/test/controller/render_test.rb
@@ -60,6 +60,10 @@ def builder_layout_test
render_action "hello"
end
+ def builder_partial_test
+ render_action "hello_world_container"
+ end
+
def partials_list
@test_unchanged = 'hello'
@customers = [ Customer.new("david"), Customer.new("mary") ]
@@ -193,6 +197,11 @@ def test_render_xml_with_default
assert_equal "
This is grand!
\n", @response.body
end
+ def test_render_xml_with_partial
+ get :builder_partial_test
+ assert_equal "\n \n\n", @response.body
+ end
+
def test_layout_rendering
get :layout_test
assert_equal "Hello world!", @response.body
diff --git a/actionpack/test/fixtures/test/_hello.rxml b/actionpack/test/fixtures/test/_hello.rxml
new file mode 100644
index 0000000000000000000000000000000000000000..ef52f632d1840f3dee6fae0fb9da903823ea2101
--- /dev/null
+++ b/actionpack/test/fixtures/test/_hello.rxml
@@ -0,0 +1 @@
+xm.hello
\ No newline at end of file
diff --git a/actionpack/test/fixtures/test/hello_world_container.rxml b/actionpack/test/fixtures/test/hello_world_container.rxml
new file mode 100644
index 0000000000000000000000000000000000000000..e48d75c405f2f61d8e7900f00a32b71a7eb034e4
--- /dev/null
+++ b/actionpack/test/fixtures/test/hello_world_container.rxml
@@ -0,0 +1,3 @@
+xml.test do
+ render :partial => 'hello', :locals => { :xm => xml }
+end
\ No newline at end of file