Tests added for rendering partial with layout, when the partial contains another render layout with block call added missing fixtures

This commit is contained in:
Santiago Pastorino 2010-11-13 13:40:36 -02:00
parent e3b68e5f6b
commit 293c8a4de5
3 changed files with 10 additions and 0 deletions

@ -0,0 +1,2 @@
<%= render :partial => 'test/partial', :layout => 'test/layout_for_partial', :locals => { :name => 'Bar!' } %>
partial with layout

@ -0,0 +1,4 @@
<%= render :layout => 'test/layout_for_partial', :locals => { :name => 'Bar!' } do %>
Content from inside layout!
<% end %>
partial with layout

@ -0,0 +1,4 @@
<%= render :layout => 'test/layout_for_partial', :locals => { :name => 'Bar!' } do %>
<%= render 'test/partial' %>
<% end %>
partial with layout