Permalink
Browse files

test cases for #8376 => fail

  • Loading branch information...
1 parent f87202f commit 90699e76059b8ce9f67eefaee5e56412659183c7 @senny committed Nov 29, 2012
Showing with 18 additions and 0 deletions.
  1. +18 −0 actionpack/test/controller/render_test.rb
@@ -702,6 +702,14 @@ def partial_with_implicit_local_assignment
render :partial => "customer"
end
+ def render_partial_with_layout
+ render :partial => 'partial', :layout => true
+ end
+
+ def render_partial_with_specific_layout
+ render :partial => 'partial', :layout => 'standard'
+ end
+
def render_call_to_partial_with_layout
render :action => "calling_partial_with_layout"
end
@@ -1506,6 +1514,16 @@ def test_render_missing_partial_template
end
end
+ def test_render_partial_with_layout
+ get :render_partial_with_layout
+ assert_equal "partial html", @response.body
+ end
+
+ def test_render_partial_with_specific_layout
+ get :render_partial_with_specific_layout
+ assert_equal "<html>partial html</html>", @response.body
+ 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

0 comments on commit 90699e7

Please sign in to comment.