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
1a588cff4b
commit
85ea7346fe
|
@ -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>
|
|
@ -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 %>
|
||||
|
|
Loading…
Reference in New Issue