8648aaed7c
This was mostly apparent when using directory indexes - because the rewrite of the destination path happened after the point where the path was removed from the "to clean" list, directory indexes would get removed on the next build --clean.
15 lines
723 B
Gherkin
15 lines
723 B
Gherkin
Feature: Build Clean
|
|
Scenario: Build and Clean an app
|
|
Given app "clean-app" is using config "empty"
|
|
And a built app at "clean-app"
|
|
And app "clean-app" is using config "complications"
|
|
And a built app at "clean-app" with flags "--clean"
|
|
Then "should_be_ignored.html" should not exist at "clean-app"
|
|
And "should_be_ignored2.html" should not exist at "clean-app"
|
|
And "should_be_ignored3.html" should not exist at "clean-app"
|
|
|
|
Scenario: Clean an app with directory indexes
|
|
Given a built app at "clean-dir-app"
|
|
Then "about/index.html" should exist at "clean-dir-app"
|
|
Given a built app at "clean-dir-app" with flags "--clean"
|
|
Then "about/index.html" should exist at "clean-dir-app"
|