2012-05-24 19:14:17 -04:00
|
|
|
Feature: Text Files Without Extensions Should Build and Preview
|
|
|
|
|
|
|
|
Scenario: Building Text Files with directory indexes
|
2013-05-08 14:37:55 -04:00
|
|
|
Given a successfully built app at "more-extensionless-text-files-app"
|
2012-05-24 19:14:17 -04:00
|
|
|
When I cd to "build"
|
|
|
|
Then the following files should exist:
|
|
|
|
| CNAME |
|
|
|
|
| LICENSE |
|
|
|
|
| README |
|
|
|
|
Then the following files should not exist:
|
|
|
|
| CNAME/index.html |
|
|
|
|
| LICENSE/index.html |
|
|
|
|
| README/index.html |
|
|
|
|
|
|
|
|
Scenario: Previewing Text Files
|
2013-05-08 14:37:55 -04:00
|
|
|
Given the Server is running at "more-extensionless-text-files-app"
|
2012-05-24 19:14:17 -04:00
|
|
|
When I go to "/CNAME"
|
|
|
|
Then I should see "test.github.com"
|
|
|
|
When I go to "/LICENSE"
|
|
|
|
Then I should see "You have the right to remain classy."
|
|
|
|
When I go to "/README"
|
|
|
|
Then I should see "Bork bork bork"
|
|
|
|
# When I go to "/CNAME/index.html"
|
|
|
|
# Then I should see "File Not Found"
|
|
|
|
# When I go to "/LICENSE/index.html"
|
|
|
|
# Then I should see "File Not Found"
|
|
|
|
# When I go to "/README/index.html"
|
|
|
|
# Then I should see "File Not Found"
|