new page features useful for sitemap traversal

support indexes which use the `directory_index` extension
add a `data` accessor to pages
This commit is contained in:
Eric Skogen 2011-12-25 01:02:50 -06:00
parent dd8391be93
commit cf6661fa45
9 changed files with 69 additions and 8 deletions

View file

@ -53,4 +53,21 @@ Feature: Step through sitemap as a tree
Scenario: Proxied page has source_file
Given the Server is running at "traversal-app"
When I go to "/sub/fake.html"
Then I should see "Source: source/proxied.html.erb"
Then I should see "Source: source/proxied.html.erb"
Scenario: Child pages have data
Given the Server is running at "traversal-app"
When I go to "/directory-indexed"
Then I should see "Title of Sibling One"
Then I should see "Title of Sibling Two"
Scenario: When directory_index extension is active, child pages are found in named directory
Given the Server is running at "traversal-app"
When I go to "/directory-indexed"
Then I should see "Parent: index.html"
Then I should see "Child: directory-indexed/fake.html"
Then I should see "Child: directory-indexed/fake2.html"
Then I should see "Child: directory-indexed/sibling.html"
Then I should see "Child: directory-indexed/sibling2.html"
Then I should see "Child: directory-indexed/sub2/index.html"
Then I should see "Sibling: root.html"