Add test for #1568

This commit is contained in:
Thomas Reynolds 2015-07-20 12:13:10 -07:00
parent 1d69bcd4bc
commit 0a8ceb24b0
2 changed files with 12 additions and 1 deletions

View file

@ -13,10 +13,13 @@ Feature: Templates should be chainable
When I cd to "build"
Then the following files should exist:
| index.html |
| test.html.combobreaker |
And the file "index.html" should contain "Title</h1>"
And the file "index.html" should contain "Subtitle</h2>"
And the file "index.html" should contain "Sup</h3>"
And the file "test.html.combobreaker.html" should contain "Title</h1>"
And the file "test.html.combobreaker.html" should contain "Subtitle</h2>"
And the file "test.html.combobreaker.html" should contain "Sup</h3>"
Scenario: Partials are parsed by multiple template engines: Outer template has .erb and inner .md.erb
Given a fixture app "partial-chained_templates-app"

View file

@ -0,0 +1,8 @@
---
layout: false
sup: "Sup"
---
<h1>#{"<%= data.article.title %>"}</h1>
<h2>#{"<%= data.article.subtitle %>"}</h2>
<h3>#{"<%= current_page.data.sup %>"}</h3>