From ef46e4e6c3741f5f3590a9e2595466a7c08b8dc0 Mon Sep 17 00:00:00 2001 From: Karl Freeman Date: Fri, 7 Jun 2013 09:59:59 +0100 Subject: [PATCH] add breaking test for escaped html using content_for --- middleman-core/features/content_for.feature | 6 +++--- .../content-for-app/source/content_for_erb.html.erb | 2 +- .../content-for-app/source/content_for_haml.html.haml | 2 +- .../content-for-app/source/content_for_slim.html.slim | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/middleman-core/features/content_for.feature b/middleman-core/features/content_for.feature index 4dc806c9..e0a653e9 100644 --- a/middleman-core/features/content_for.feature +++ b/middleman-core/features/content_for.feature @@ -3,14 +3,14 @@ Feature: Support content_for and yield_content helpers Scenario: content_for works as expected in erb Given the Server is running at "content-for-app" 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 with html tags" Scenario: content_for works as expected in haml Given the Server is running at "content-for-app" 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 with html tags" Scenario: content_for works as expected in slim Given the Server is running at "content-for-app" When I go to "/content_for_slim.html" - Then I should see "In Layout: I am the yielded content slim" \ No newline at end of file + Then I should see "In Layout: I am the yielded content slim with html tags" \ No newline at end of file diff --git a/middleman-core/fixtures/content-for-app/source/content_for_erb.html.erb b/middleman-core/fixtures/content-for-app/source/content_for_erb.html.erb index 0af8266a..0f7439a3 100644 --- a/middleman-core/fixtures/content-for-app/source/content_for_erb.html.erb +++ b/middleman-core/fixtures/content-for-app/source/content_for_erb.html.erb @@ -1,5 +1,5 @@ <% content_for :from_template do %> - I am the yielded content erb + I am the yielded content erb with html tags <% end %> I am in the template \ No newline at end of file diff --git a/middleman-core/fixtures/content-for-app/source/content_for_haml.html.haml b/middleman-core/fixtures/content-for-app/source/content_for_haml.html.haml index e4a7522a..13645ee7 100644 --- a/middleman-core/fixtures/content-for-app/source/content_for_haml.html.haml +++ b/middleman-core/fixtures/content-for-app/source/content_for_haml.html.haml @@ -1,4 +1,4 @@ - content_for :from_template do - = "I am the yielded content haml" + = "I am the yielded content haml with html tags" %p I am in the template \ No newline at end of file diff --git a/middleman-core/fixtures/content-for-app/source/content_for_slim.html.slim b/middleman-core/fixtures/content-for-app/source/content_for_slim.html.slim index 89267513..bace70e0 100644 --- a/middleman-core/fixtures/content-for-app/source/content_for_slim.html.slim +++ b/middleman-core/fixtures/content-for-app/source/content_for_slim.html.slim @@ -1,4 +1,5 @@ - 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 \ No newline at end of file