2011-10-15 14:21:56 -04:00
|
|
|
Feature: Build Clean
|
|
|
|
Scenario: Build and Clean an app
|
2011-12-15 19:33:09 -05:00
|
|
|
Given a fixture app "clean-app"
|
|
|
|
And app "clean-app" is using config "empty"
|
|
|
|
And a successfully built app at "clean-app"
|
2011-10-15 14:21:56 -04:00
|
|
|
And app "clean-app" is using config "complications"
|
2011-12-15 19:33:09 -05:00
|
|
|
|
|
|
|
Given a successfully built app at "clean-app" with flags "--clean"
|
|
|
|
When I cd to "build"
|
|
|
|
Then the following files should not exist:
|
|
|
|
| should_be_ignored.html |
|
|
|
|
| should_be_ignored2.html |
|
|
|
|
| should_be_ignored3.html |
|
|
|
|
And the file "index.html" should contain "Comment in layout"
|
2011-12-01 01:47:07 -05:00
|
|
|
|
|
|
|
Scenario: Clean an app with directory indexes
|
2011-12-15 19:33:09 -05:00
|
|
|
Given a successfully built app at "clean-dir-app"
|
|
|
|
When I cd to "build"
|
|
|
|
Then the following files should exist:
|
|
|
|
| about/index.html |
|
|
|
|
|
|
|
|
Given a successfully built app at "clean-dir-app" with flags "--clean"
|
|
|
|
When I cd to "build"
|
|
|
|
Then the following files should exist:
|
|
|
|
| about/index.html |
|
2011-12-01 01:55:09 -05:00
|
|
|
|
|
|
|
Scenario: Clean build an app that's never been built
|
2011-12-15 19:33:09 -05:00
|
|
|
Given a successfully built app at "clean-dir-app" with flags "--clean"
|
|
|
|
When I cd to "build"
|
|
|
|
Then the following files should exist:
|
|
|
|
| about/index.html |
|