2010-09-06 13:59:51 -04:00
|
|
|
Feature: Builder
|
|
|
|
In order to output static html and css for delivery
|
|
|
|
|
|
|
|
Scenario: Checking built folder for content
|
2011-12-29 18:09:51 -05:00
|
|
|
Given a successfully built app at "large-build-app"
|
2011-12-15 19:05:15 -05:00
|
|
|
When I cd to "build"
|
|
|
|
Then the following files should exist:
|
|
|
|
| index.html |
|
|
|
|
| static.html |
|
|
|
|
| services/index.html |
|
|
|
|
| stylesheets/static.css |
|
|
|
|
| images/blank.gif |
|
|
|
|
| images/Read me (example).txt |
|
|
|
|
| images/Child folder/regular_file(example).txt |
|
|
|
|
| .htaccess |
|
2013-01-18 20:13:49 -05:00
|
|
|
| .htpasswd |
|
2012-03-18 20:55:02 -04:00
|
|
|
| feed.xml |
|
2011-12-15 19:05:15 -05:00
|
|
|
Then the following files should not exist:
|
|
|
|
| _partial |
|
|
|
|
| layout |
|
|
|
|
| layouts/custom |
|
|
|
|
| layouts/content_for |
|
|
|
|
|
|
|
|
And the file "index.html" should contain "Comment in layout"
|
|
|
|
And the file "index.html" should contain "<h1>Welcome</h1>"
|
|
|
|
And the file "static.html" should contain "Static, no code!"
|
|
|
|
And the file "services/index.html" should contain "Services"
|
|
|
|
And the file "stylesheets/static.css" should contain "body"
|
2011-04-19 17:24:21 -04:00
|
|
|
|
2011-09-12 19:15:51 -04:00
|
|
|
Scenario: Build glob
|
2011-12-15 19:33:09 -05:00
|
|
|
Given a successfully built app at "glob-app" with flags "--glob '*.css'"
|
2011-12-15 19:05:15 -05:00
|
|
|
When I cd to "build"
|
|
|
|
Then the following files should not exist:
|
|
|
|
| index.html |
|
|
|
|
Then the following files should exist:
|
|
|
|
| stylesheets/site.css |
|
2011-12-11 18:49:13 -05:00
|
|
|
|
|
|
|
Scenario: Build with errors
|
|
|
|
Given a built app at "build-with-errors-app"
|
2011-12-15 19:05:15 -05:00
|
|
|
Then the exit status should be 1
|
2011-12-23 00:19:49 -05:00
|
|
|
|
|
|
|
Scenario: Build empty errors
|
|
|
|
Given a built app at "empty-app"
|
|
|
|
Then the exit status should be 1
|
2011-12-21 15:13:28 -05:00
|
|
|
|
|
|
|
Scenario: Build alias (b)
|
2011-12-29 18:09:51 -05:00
|
|
|
Given a fixture app "large-build-app"
|
2011-12-21 15:13:28 -05:00
|
|
|
When I run `middleman b`
|
|
|
|
Then was successfully built
|