2011-10-15 14:21:56 -04:00
|
|
|
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"
|
2011-12-01 01:47:07 -05:00
|
|
|
|
|
|
|
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"
|
2011-12-01 01:55:09 -05:00
|
|
|
Then cleanup built app at "clean-dir-app"
|
|
|
|
|
|
|
|
Scenario: Clean build an app that's never been built
|
|
|
|
Given a built app at "clean-dir-app" with flags "--clean"
|
|
|
|
Then "about/index.html" should exist at "clean-dir-app"
|