2012-01-07 02:03:08 -05:00
|
|
|
Feature: Setting page settings through frontmatter
|
2012-01-07 21:11:56 -05:00
|
|
|
Scenario: Setting layout, ignoring, and disabling directory indexes through frontmatter (build)
|
2012-01-07 02:03:08 -05:00
|
|
|
Given a successfully built app at "frontmatter-settings-app"
|
|
|
|
Then the following files should exist:
|
2012-01-07 20:21:26 -05:00
|
|
|
| build/proxied/index.html |
|
|
|
|
| build/no_index.html |
|
2012-01-07 02:03:08 -05:00
|
|
|
And the file "build/alternate_layout/index.html" should contain "Alternate layout"
|
|
|
|
And the following files should not exist:
|
2012-01-07 20:21:26 -05:00
|
|
|
| build/ignored/index.html |
|
2012-01-07 21:11:56 -05:00
|
|
|
| build/no_index/index.html |
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: Setting layout, ignoring, and disabling directory indexes through frontmatter (preview)
|
|
|
|
Given the Server is running at "frontmatter-settings-app"
|
|
|
|
# When I go to "/proxied/"
|
|
|
|
# Then I should not see "File Not Found"
|
|
|
|
When I go to "/no_index.html"
|
|
|
|
Then I should not see "File Not Found"
|
|
|
|
When I go to "/alternate_layout/"
|
|
|
|
Then I should not see "File Not Found"
|
|
|
|
And I should see "Alternate layout"
|
|
|
|
When I go to "/ignored.html"
|
|
|
|
Then I should see "File Not Found"
|
|
|
|
When I go to "/ignored/index.html"
|
|
|
|
Then I should see "File Not Found"
|
|
|
|
When I go to "/no_index/index.html"
|
|
|
|
Then I should see "File Not Found"
|