mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Making tests green by modifying the partial_layout_erb template test
When using <%= , ActionView is escaping the result for safety purposes so it will be better to remove the tags from the test
This commit is contained in:
parent
05ac06df93
commit
828e9e9f0a
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
<h1>Partial layout used with for block:</h1>
|
<h1>Partial layout used with for block:</h1>
|
||||||
<div class='partial-layout'>
|
<div class='partial-layout'>
|
||||||
<h2>This is inside a partial layout</h2>
|
<h2>This is inside a partial layout</h2>
|
||||||
<p>Some content within a layout</p>
|
Some content within a layout
|
||||||
</div>
|
</div>
|
|
@ -1,4 +1,4 @@
|
||||||
<h1>Partial layout used with for block:</h1>
|
<h1>Partial layout used with for block:</h1>
|
||||||
<%= render :layout => 'layout_for_partial' do -%>
|
<%= render :layout => 'layout_for_partial' do -%>
|
||||||
<p>Some content within a layout</p>
|
Some content within a layout
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue