2011-07-24 01:21:52 -04:00
|
|
|
Feature: Dynamic Pages
|
|
|
|
In order to use a single view to generate multiple output files
|
|
|
|
|
|
|
|
Scenario: Checking built folder for content
|
2011-12-15 19:40:07 -05:00
|
|
|
Given a successfully built app at "test-app"
|
2011-12-15 19:05:15 -05:00
|
|
|
When I cd to "build"
|
|
|
|
Then the following files should exist:
|
|
|
|
| fake.html |
|
|
|
|
| fake/one.html |
|
|
|
|
| fake/two.html |
|
|
|
|
| target_ignore.html |
|
|
|
|
Then the following files should not exist:
|
|
|
|
| should_be_ignored.html |
|
|
|
|
| should_be_ignored2.html |
|
|
|
|
| should_be_ignored3.html |
|
2011-07-24 01:21:52 -04:00
|
|
|
|
|
|
|
Scenario: Preview basic proxy
|
2011-07-27 22:59:38 -04:00
|
|
|
Given the Server is running at "test-app"
|
2011-07-24 01:21:52 -04:00
|
|
|
When I go to "/fake.html"
|
|
|
|
Then I should see "I am real"
|
|
|
|
|
|
|
|
Scenario: Preview proxy with variable one
|
2011-07-27 22:59:38 -04:00
|
|
|
Given the Server is running at "test-app"
|
2011-07-24 01:21:52 -04:00
|
|
|
When I go to "/fake/one.html"
|
|
|
|
Then I should see "I am real: one"
|
|
|
|
|
|
|
|
Scenario: Preview proxy with variable two
|
2011-07-27 22:59:38 -04:00
|
|
|
Given the Server is running at "test-app"
|
2011-07-24 01:21:52 -04:00
|
|
|
When I go to "/fake/two.html"
|
2011-07-27 22:59:38 -04:00
|
|
|
Then I should see "I am real: two"
|
|
|
|
|
|
|
|
Scenario: Preview ignored paths
|
|
|
|
Given the Server is running at "test-app"
|
|
|
|
When I go to "/should_be_ignored.html"
|
|
|
|
Then I should see "File Not Found"
|