mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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:
2
actionpack/test/fixtures/test/_partial_with_layout.erb
vendored
Normal file
2
actionpack/test/fixtures/test/_partial_with_layout.erb
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
<%= render :partial => 'test/partial', :layout => 'test/layout_for_partial', :locals => { :name => 'Bar!' } %>
|
||||
partial with layout
|
||||
4
actionpack/test/fixtures/test/_partial_with_layout_block_content.erb
vendored
Normal file
4
actionpack/test/fixtures/test/_partial_with_layout_block_content.erb
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<%= render :layout => 'test/layout_for_partial', :locals => { :name => 'Bar!' } do %>
|
||||
Content from inside layout!
|
||||
<% end %>
|
||||
partial with layout
|
||||
4
actionpack/test/fixtures/test/_partial_with_layout_block_partial.erb
vendored
Normal file
4
actionpack/test/fixtures/test/_partial_with_layout_block_partial.erb
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<%= render :layout => 'test/layout_for_partial', :locals => { :name => 'Bar!' } do %>
|
||||
<%= render 'test/partial' %>
|
||||
<% end %>
|
||||
partial with layout
|
||||
Reference in New Issue
Block a user