directory_indexes feature, some builder rename middleware and a bunch of test case cleanup. closes #63
This commit is contained in:
parent
c35a6fc369
commit
5602e35c88
38 changed files with 231 additions and 104 deletions
27
features/directory_index.feature
Normal file
27
features/directory_index.feature
Normal file
|
@ -0,0 +1,27 @@
|
|||
Feature: Directory Index
|
||||
In order output Apache-friendly directories and indexes
|
||||
|
||||
Scenario: Checking built folder for content
|
||||
Given a built app at "indexable-app"
|
||||
Then "needs_index/index.html" should exist at "indexable-app" and include "Indexable"
|
||||
Then "a_folder/needs_index/index.html" should exist at "indexable-app" and include "Indexable"
|
||||
Then "leave_me_alone.html" should exist at "indexable-app" and include "Stay away"
|
||||
Then "needs_index.html" should not exist at "indexable-app"
|
||||
Then "a_folder/needs_index.html" should not exist at "indexable-app"
|
||||
Then "leave_me_alone/index.html" should not exist at "indexable-app"
|
||||
And cleanup built app at "indexable-app"
|
||||
|
||||
Scenario: Preview normal file
|
||||
Given the Server is running at "indexable-app"
|
||||
When I go to "/needs_index/"
|
||||
Then I should see "Indexable"
|
||||
|
||||
Scenario: Preview normal file subdirectory
|
||||
Given the Server is running at "indexable-app"
|
||||
When I go to "/a_folder/needs_index/"
|
||||
Then I should see "Indexable"
|
||||
|
||||
Scenario: Preview ignored file
|
||||
Given the Server is running at "indexable-app"
|
||||
When I go to "/leave_me_alone/"
|
||||
Then I should see "File Not Found"
|
Loading…
Add table
Add a link
Reference in a new issue