mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
add tests on eponymous parent traversal
This commit is contained in:
parent
299263c7e5
commit
d1d3e8dba6
2 changed files with 20 additions and 0 deletions
|
@ -71,3 +71,13 @@ Feature: Step through sitemap as a tree (more)
|
||||||
Then I should see "Child: directory-indexed/sibling2.html"
|
Then I should see "Child: directory-indexed/sibling2.html"
|
||||||
Then I should see "Child: directory-indexed/sub2/index.html"
|
Then I should see "Child: directory-indexed/sub2/index.html"
|
||||||
Then I should see "Sibling: root.html"
|
Then I should see "Sibling: root.html"
|
||||||
|
|
||||||
|
Scenario: Child pages can see their parent and siblings too in named directory
|
||||||
|
Given the Server is running at "more-traversal-app"
|
||||||
|
When I go to "/directory-indexed/sibling"
|
||||||
|
Then I should see "Path: directory-indexed/sibling.html"
|
||||||
|
Then I should see "Parent: directory-indexed.html"
|
||||||
|
Then I should see "Sibling: directory-indexed/fake.html"
|
||||||
|
Then I should see "Sibling: directory-indexed/fake2.html"
|
||||||
|
Then I should see "Sibling: directory-indexed/sibling2.html"
|
||||||
|
Then I should see "Sibling: directory-indexed/sub2/index.html"
|
||||||
|
|
|
@ -71,3 +71,13 @@ Feature: Step through sitemap as a tree
|
||||||
Then I should see "Child: directory-indexed/sibling2.html"
|
Then I should see "Child: directory-indexed/sibling2.html"
|
||||||
Then I should see "Child: directory-indexed/sub2/index.html"
|
Then I should see "Child: directory-indexed/sub2/index.html"
|
||||||
Then I should see "Sibling: root.html"
|
Then I should see "Sibling: root.html"
|
||||||
|
|
||||||
|
Scenario: Child pages can see their parent and siblings too in named directory
|
||||||
|
Given the Server is running at "traversal-app"
|
||||||
|
When I go to "/directory-indexed/sibling.html"
|
||||||
|
Then I should see "Path: directory-indexed/sibling.html"
|
||||||
|
Then I should see "Parent: directory-indexed.html"
|
||||||
|
Then I should see "Sibling: directory-indexed/fake.html"
|
||||||
|
Then I should see "Sibling: directory-indexed/fake2.html"
|
||||||
|
Then I should see "Sibling: directory-indexed/sibling2.html"
|
||||||
|
Then I should see "Sibling: directory-indexed/sub2/index.html"
|
||||||
|
|
Loading…
Reference in a new issue