1
0
Fork 0
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:
Mircea Moise 2013-11-02 15:51:05 +00:00 committed by Norman Clarke
parent 05ac06df93
commit 828e9e9f0a
2 changed files with 2 additions and 2 deletions

View file

@ -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>

View file

@ -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 %>