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"
|
2012-01-04 03:20:25 -05:00
|
|
|
Then the following files should exist:
|
|
|
|
| build/index.html |
|
|
|
|
| build/should_be_ignored.html |
|
|
|
|
| build/should_be_ignored2.html |
|
|
|
|
| build/should_be_ignored3.html |
|
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"
|
|
|
|
Then the following files should not exist:
|
2012-01-04 03:20:25 -05:00
|
|
|
| build/should_be_ignored.html |
|
|
|
|
| build/should_be_ignored2.html |
|
|
|
|
| build/should_be_ignored3.html |
|
|
|
|
And the file "build/index.html" should contain "Comment in layout"
|
2011-12-01 01:47:07 -05:00
|
|
|
|
2012-01-04 03:20:25 -05:00
|
|
|
Scenario: Clean build an app with newly ignored files and a nested output directory
|
|
|
|
Given a built app at "clean-nested-app"
|
|
|
|
Then a directory named "sub/dir" should exist
|
|
|
|
Then the following files should exist:
|
|
|
|
| sub/dir/about.html |
|
|
|
|
When I append to "config.rb" with "ignore 'about.html'"
|
|
|
|
Given a built app at "clean-nested-app" with flags "--clean"
|
|
|
|
Then the following files should not exist:
|
|
|
|
| sub/dir/about.html |
|
|
|
|
|