Frontmatter parseing changes broke some whitespace in tests, but shouldn't be a regression

This commit is contained in:
Thomas Reynolds 2015-09-29 10:27:53 -07:00
parent d9fc7a95e1
commit 5e3ddbf988
5 changed files with 23 additions and 21 deletions

View file

@ -10,7 +10,6 @@ Feature: Allow nesting of layouts
Outer
Inner
Template
"""
When I go to "/another.html"
Then I should see:
@ -25,7 +24,11 @@ Feature: Allow nesting of layouts
Scenario: A page uses an inner layout when uses an outer layout (slim)
Given the Server is running at "nested-layout-app"
When I go to "/slim-test.html"
Then I should see "<h1>Master</h1><p>New Article Title</p><div><h2>Outer</h2><h3>Inner</h3><p>The Article Content</p>"
Then I should see:
"""
<h1>Master</h1><p>New Article Title</p><div><h2>Outer</h2><h3>Inner</h3>
<p>The Article Content</p>
"""
Scenario: A page uses an inner layout when uses an outer layout (haml)
Given the Server is running at "nested-layout-app"
@ -36,6 +39,7 @@ Feature: Allow nesting of layouts
<h1>New Article Title</h1>
Outer
Inner
<p>The Article Content</p>
"""

View file

@ -3,5 +3,4 @@ title: "New Article Title"
date: 2011-01-01
layout: inner
---
The Article Content

View file

@ -2,5 +2,4 @@
title: "Index Title"
layout: inner
---
Template

View file

@ -1,4 +1,4 @@
<% wrap_layout :outer do %>
Inner
<%= yield %>
Inner
<%= yield %>
<% end %>

View file

@ -1,4 +1,4 @@
<% wrap_layout :master do %>
Outer
<%= yield %>
Outer
<%= yield %>
<% end %>