diff options
author | Jan De Poorter <jan@defv.be> | 2010-06-07 15:03:07 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-20 00:58:10 +0200 |
commit | 96f5e59a26329aa972b8061a818410b0b378f306 (patch) | |
tree | aa09e26bba3ecf2230de9e80c53ac57401156f9c /actionpack/test/controller | |
parent | 73df48083a8e0bdb10752c1b481549caac35b6cf (diff) | |
download | rails-96f5e59a26329aa972b8061a818410b0b378f306.tar.gz rails-96f5e59a26329aa972b8061a818410b0b378f306.tar.bz2 rails-96f5e59a26329aa972b8061a818410b0b378f306.zip |
Make sure a namespaced <%= render form %> still renders the _form partial [#4784 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index e3ed097c67..a57a12f271 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -7,6 +7,10 @@ module Fun # :ported: def hello_world end + + def nested_partial_with_form_builder + render :partial => ActionView::Helpers::FormBuilder.new(:post, nil, view_context, {}, Proc.new {}) + end end end @@ -1230,6 +1234,13 @@ class RenderTest < ActionController::TestCase assert_match(/<label/, @response.body) assert_template('test/_labelling_form') end + + def test_nested_partial_with_form_builder + @controller = Fun::GamesController.new + get :nested_partial_with_form_builder + assert_match(/<label/, @response.body) + assert_template('fun/games/_form') + end def test_partial_collection get :partial_collection |