diff options
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/new_render_test.rb | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/actionpack/test/controller/new_render_test.rb b/actionpack/test/controller/new_render_test.rb index b1069ca820..ce254cbf0d 100644 --- a/actionpack/test/controller/new_render_test.rb +++ b/actionpack/test/controller/new_render_test.rb @@ -349,6 +349,14 @@ class NewRenderTestController < ActionController::Base render :text => "hello world!" end + def render_call_to_partial_with_layout + render :action => "calling_partial_with_layout" + end + + def render_using_layout_around_block + render :action => "using_layout_around_block" + end + def rescue_action(e) raise end private @@ -793,4 +801,14 @@ EOS get :render_with_object_location assert_equal "http://www.nextangle.com/customers/1", @response.headers["Location"] end -end + + def test_render_call_to_partial_with_layout + get :render_call_to_partial_with_layout + assert_equal "Before (David)\nInside from partial (David)\nAfter", @response.body + end + + def test_using_layout_around_block + get :using_layout_around_block + assert_equal "Before (David)\nInside from block\nAfter", @response.body + end +end
\ No newline at end of file |