add breaking test for escaped html using content_for
This commit is contained in:
parent
d728df12cf
commit
ef46e4e6c3
4 changed files with 7 additions and 6 deletions
|
@ -3,14 +3,14 @@ Feature: Support content_for and yield_content helpers
|
||||||
Scenario: content_for works as expected in erb
|
Scenario: content_for works as expected in erb
|
||||||
Given the Server is running at "content-for-app"
|
Given the Server is running at "content-for-app"
|
||||||
When I go to "/content_for_erb.html"
|
When I go to "/content_for_erb.html"
|
||||||
Then I should see "In Layout: I am the yielded content erb"
|
Then I should see "In Layout: I am the yielded content erb <s>with html tags</s>"
|
||||||
|
|
||||||
Scenario: content_for works as expected in haml
|
Scenario: content_for works as expected in haml
|
||||||
Given the Server is running at "content-for-app"
|
Given the Server is running at "content-for-app"
|
||||||
When I go to "/content_for_haml.html"
|
When I go to "/content_for_haml.html"
|
||||||
Then I should see "In Layout: I am the yielded content haml"
|
Then I should see "In Layout: I am the yielded content haml <s>with html tags</s>"
|
||||||
|
|
||||||
Scenario: content_for works as expected in slim
|
Scenario: content_for works as expected in slim
|
||||||
Given the Server is running at "content-for-app"
|
Given the Server is running at "content-for-app"
|
||||||
When I go to "/content_for_slim.html"
|
When I go to "/content_for_slim.html"
|
||||||
Then I should see "In Layout: I am the yielded content slim"
|
Then I should see "In Layout: I am the yielded content slim <s>with html tags</s>"
|
|
@ -1,5 +1,5 @@
|
||||||
<% content_for :from_template do %>
|
<% content_for :from_template do %>
|
||||||
I am the yielded content erb
|
I am the yielded content erb <s>with html tags</s>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
I am in the template
|
I am in the template
|
|
@ -1,4 +1,4 @@
|
||||||
- content_for :from_template do
|
- content_for :from_template do
|
||||||
= "I am the yielded content haml"
|
= "I am the yielded content haml <s>with html tags</s>"
|
||||||
|
|
||||||
%p I am in the template
|
%p I am in the template
|
|
@ -1,4 +1,5 @@
|
||||||
- content_for :from_template do
|
- content_for :from_template do
|
||||||
| I am the yielded content slim
|
| I am the yielded content slim
|
||||||
|
s with html tags
|
||||||
|
|
||||||
| I am in the template
|
| I am in the template
|
Loading…
Reference in a new issue