fix directory indexes tests
This commit is contained in:
parent
43e6d669b5
commit
4b9f5771c2
1 changed files with 17 additions and 10 deletions
|
@ -2,16 +2,23 @@ Feature: Directory Index
|
||||||
In order output Apache-friendly directories and indexes
|
In order output Apache-friendly directories and indexes
|
||||||
|
|
||||||
Scenario: Checking built folder for content
|
Scenario: Checking built folder for content
|
||||||
Given a built app at "indexable-app"
|
Given a successfully built app at "indexable-app"
|
||||||
Then "needs_index/index.html" should exist at "indexable-app" and include "Indexable"
|
When I cd to "build"
|
||||||
Then "a_folder/needs_index/index.html" should exist at "indexable-app" and include "Indexable"
|
Then the following files should exist:
|
||||||
Then "leave_me_alone.html" should exist at "indexable-app" and include "Stay away"
|
| needs_index/index.html |
|
||||||
Then "regular/index.html" should exist at "indexable-app" and include "Regular"
|
| a_folder/needs_index/index.html |
|
||||||
Then "regular/index/index.html" should not exist at "indexable-app"
|
| leave_me_alone.html |
|
||||||
Then "needs_index.html" should not exist at "indexable-app"
|
| regular/index.html |
|
||||||
Then "a_folder/needs_index.html" should not exist at "indexable-app"
|
| .htaccess |
|
||||||
Then "leave_me_alone/index.html" should not exist at "indexable-app"
|
Then the following files should not exist:
|
||||||
Then ".htaccess" should exist at "indexable-app"
|
| egular/index/index.html |
|
||||||
|
| needs_index.html |
|
||||||
|
| a_folder/needs_index.html |
|
||||||
|
| leave_me_alone/index.html |
|
||||||
|
And the file "needs_index/index.html" should contain "Indexable"
|
||||||
|
And the file "a_folder/needs_index/index.html" should contain "Indexable"
|
||||||
|
And the file "leave_me_alone.html" should contain "Stay away"
|
||||||
|
And the file "regular/index.html" should contain "Regular"
|
||||||
|
|
||||||
Scenario: Preview normal file
|
Scenario: Preview normal file
|
||||||
Given the Server is running at "indexable-app"
|
Given the Server is running at "indexable-app"
|
||||||
|
|
Loading…
Reference in a new issue