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>
<div class='partial-layout'>
<h2>This is inside a partial layout</h2>
<p>Some content within a layout</p>
Some content within a layout
</div>

View File

@ -1,4 +1,4 @@
<h1>Partial layout used with for block:</h1>
<%= render :layout => 'layout_for_partial' do -%>
<p>Some content within a layout</p>
Some content within a layout
<% end %>