Pull test case from bhollis, now passes with metadata cache changes. Fixes #184

This commit is contained in:
Thomas Reynolds 2011-12-07 21:05:53 -08:00
parent e2d5839874
commit aa0832f549
2 changed files with 29 additions and 1 deletions

View file

@ -5,4 +5,27 @@ Feature: YAML Front Matter
Given the Server is running at "test-app"
When I go to "/front-matter.html"
Then I should see "<h1>This is the title</h1>"
Then I should not see "---"
Then I should not see "---"
Scenario: A template changes frontmatter during preview
Given the Server is running at "test-app"
And the file "source/front-matter-change.html.erb" has the contents
"""
---
title: Hello World
layout: false
---
<%= data.page.title %>
"""
When I go to "/front-matter-change.html"
Then I should see "Hello World"
And the file "source/front-matter-change.html.erb" has the contents
"""
---
title: Hola Mundo
layout: false
---
<%= data.page.title %>
"""
When I go to "/front-matter-change.html"
Then I should see "Hola Mundo"

View file

@ -0,0 +1,5 @@
---
title: Hola Mundo
layout: false
---
<%= data.page.title %>