2011-11-29 14:49:42 -05:00
|
|
|
Feature: Templates should be chainable
|
|
|
|
In order to insert variables and data in "static" engines
|
|
|
|
|
|
|
|
Scenario: Data in Erb in Markdown
|
|
|
|
Given the Server is running at "chained-app"
|
|
|
|
When I go to "/index.html"
|
|
|
|
Then I should see "Title</h1>"
|
|
|
|
And I should see "Subtitle</h2>"
|
2011-11-29 14:51:01 -05:00
|
|
|
And I should see "Sup</h3>"
|
|
|
|
|
|
|
|
Scenario: Build chained template
|
2011-12-15 19:33:09 -05:00
|
|
|
Given a successfully built app at "chained-app"
|
2011-12-15 19:21:34 -05:00
|
|
|
When I cd to "build"
|
|
|
|
Then the following files should exist:
|
|
|
|
| index.html |
|
|
|
|
|
|
|
|
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>"
|