Adding tests for overriding layouts using frontmatter
This commit is contained in:
parent
4410d858f2
commit
a0c11df4cc
2 changed files with 14 additions and 2 deletions
|
@ -31,3 +31,13 @@ Feature: Setting page settings through frontmatter
|
||||||
"""
|
"""
|
||||||
When I go to "/ignored.html"
|
When I go to "/ignored.html"
|
||||||
Then I should see "This file is no longer ignored."
|
Then I should see "This file is no longer ignored."
|
||||||
|
|
||||||
|
Scenario: Overriding layout through frontmatter
|
||||||
|
Given the Server is running at "frontmatter-settings-app"
|
||||||
|
When I go to "/override_layout.html"
|
||||||
|
Then I should see "Layout in use: Override"
|
||||||
|
|
||||||
|
Scenario: Setting layout through frontmatter even if page is mentioned in config
|
||||||
|
Given the Server is running at "frontmatter-settings-app"
|
||||||
|
When I go to "/page_mentioned.html"
|
||||||
|
Then I should see "Layout in use: Override"
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
# Proxy ignored.html, which should ignore itself through a frontmatter
|
# Proxy ignored.html, which should ignore itself through a frontmatter
|
||||||
page 'proxied.html', :proxy => 'ignored.html'
|
page 'proxied.html', :proxy => 'ignored.html'
|
||||||
|
page 'override_layout.html', :layout => :alternate
|
||||||
|
page 'page_mentioned.html'
|
Loading…
Add table
Reference in a new issue