demonstrate bug with nested_layouts and YAML front matter
This commit is contained in:
parent
b9b2c2511c
commit
24664e4bba
|
@ -6,4 +6,14 @@ Feature: Allow nesting of layouts
|
|||
Then I should see "Template"
|
||||
And I should see "Inner"
|
||||
And I should see "Outer"
|
||||
And I should see "Master"
|
||||
And I should see "Master"
|
||||
|
||||
Scenario: YAML Front Matter isn't clobbered with nested layouts
|
||||
Given the Server is running at "nested-layout-app"
|
||||
When I go to "/data-one.html"
|
||||
Then I should see "Page Number One"
|
||||
When I go to "/data-two.html"
|
||||
Then I should see "Page Number Two"
|
||||
When I go to "/data-one.html"
|
||||
Then I should see "Page Number One"
|
||||
When I go to "/data-two.html"
|
||||
|
|
5
fixtures/nested-layout-app/source/data-one.html.erb
Normal file
5
fixtures/nested-layout-app/source/data-one.html.erb
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Page Number One
|
||||
layout: outer
|
||||
---
|
||||
Page #1
|
5
fixtures/nested-layout-app/source/data-two.html.erb
Normal file
5
fixtures/nested-layout-app/source/data-two.html.erb
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Page Number Two
|
||||
layout: outer
|
||||
---
|
||||
Page #2
|
|
@ -1,2 +1,3 @@
|
|||
Master
|
||||
<%= data.page.title %>
|
||||
<%= yield %>
|
Loading…
Reference in a new issue