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:
parent
e3b68e5f6b
commit
293c8a4de5
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
|
Loading…
Reference in New Issue
Block a user