2010-09-06 19:59:51 +02:00
|
|
|
Feature: Builder
|
|
|
|
In order to output static html and css for delivery
|
|
|
|
|
|
|
|
Scenario: Checking built folder for content
|
2011-12-16 01:33:09 +01:00
|
|
|
Given a successfully built app at "test-app"
|
2011-12-16 01:05:15 +01:00
|
|
|
When I cd to "build"
|
|
|
|
Then the following files should exist:
|
|
|
|
| index.html |
|
|
|
|
| javascripts/coffee_test.js |
|
|
|
|
| static.html |
|
|
|
|
| services/index.html |
|
|
|
|
| stylesheets/site.css |
|
|
|
|
| stylesheets/site_scss.css |
|
|
|
|
| stylesheets/static.css |
|
|
|
|
| spaces in file.html |
|
|
|
|
| images/blank.gif |
|
|
|
|
| images/Read me (example).txt |
|
|
|
|
| images/Child folder/regular_file(example).txt |
|
|
|
|
| .htaccess |
|
|
|
|
Then the following files should not exist:
|
|
|
|
| _partial |
|
|
|
|
| _liquid_partial |
|
|
|
|
| layout |
|
2011-12-27 00:53:32 +01:00
|
|
|
| other_layout |
|
2011-12-16 01:05:15 +01:00
|
|
|
| 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 "javascripts/coffee_test.js" should contain "Array.prototype.slice"
|
|
|
|
And the file "static.html" should contain "Static, no code!"
|
|
|
|
And the file "services/index.html" should contain "Services"
|
|
|
|
And the file "stylesheets/site.css" should contain "html, body, div, span"
|
|
|
|
And the file "stylesheets/site_scss.css" should contain "html, body, div, span"
|
|
|
|
And the file "stylesheets/static.css" should contain "body"
|
|
|
|
And the file "spaces in file.html" should contain "spaces"
|
2011-04-19 23:24:21 +02:00
|
|
|
|
2011-09-13 01:15:51 +02:00
|
|
|
Scenario: Build glob
|
2011-12-16 01:33:09 +01:00
|
|
|
Given a successfully built app at "glob-app" with flags "--glob '*.css'"
|
2011-12-16 01:05:15 +01: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-12 00:49:13 +01:00
|
|
|
|
|
|
|
Scenario: Build with errors
|
|
|
|
Given a built app at "build-with-errors-app"
|
2011-12-16 01:05:15 +01:00
|
|
|
Then the exit status should be 1
|
2011-12-23 06:19:49 +01:00
|
|
|
|
|
|
|
Scenario: Build empty errors
|
|
|
|
Given a built app at "empty-app"
|
|
|
|
Then the exit status should be 1
|
2011-12-21 21:13:28 +01:00
|
|
|
|
|
|
|
Scenario: Build alias (b)
|
|
|
|
Given a fixture app "test-app"
|
|
|
|
When I run `middleman b`
|
|
|
|
Then was successfully built
|