Feature: YAML Front Matter
In order to specific options and data inline
Scenario: Rendering html (yaml)
Given the Server is running at "frontmatter-app"
When I go to "/front-matter-auto.html"
Then I should see "
This is the title
"
Then I should not see "---"
When I go to "/front-matter.html"
Then I should see "This is the title
"
Then I should not see "---"
When I go to "/front-matter-2.php"
Then I should see "This is the title
"
Then I should see "This is the title"
Then I should not see "{"
When I go to "/json-front-matter.html"
Then I should see "This is the title
"
Then I should not see "{"
When I go to "/json-front-matter-2.php"
Then I should see "This is the title
"
Then I should see "
"""
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"