Permalink
Browse files

Tests added for rendering partial with layout, when the partial conta…

…ins another render layout with block call added missing fixtures
  • Loading branch information...
spastorino committed Nov 13, 2010
1 parent e3b68e5 commit 293c8a4de5bfe3274e0fda7dfab1b6ec296bb829
@@ -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

0 comments on commit 293c8a4

Please sign in to comment.