Add cucumber scenarios for markdown pages with erb layout

These are tests for middleman/middleman#860.
This commit is contained in:
Moritz Breit 2013-04-14 21:28:35 +02:00 committed by Thomas Reynolds
parent a52effc119
commit b234deb540
4 changed files with 32 additions and 1 deletions

View file

@ -10,4 +10,14 @@ Feature: Markdown support
Scenario: Markdown extensions (Maruku) Scenario: Markdown extensions (Maruku)
Given the Server is running at "markdown-app" Given the Server is running at "markdown-app"
When I go to "/smarty_pants.html" When I go to "/smarty_pants.html"
Then I should see "Hello" Then I should see "Hello"
Scenario: Links with block syntax in ERB layout erb
Given the Server is running at "markdown-app"
When I go to "/with_layout_erb.html"
Then I should see '<a href="layout_block_link.html">'
Scenario: Links with block syntax in ERB layout
Given the Server is running at "markdown-app"
When I go to "/with_layout.html"
Then I should see '<a href="layout_block_link.html">'

View file

@ -0,0 +1,13 @@
<html>
<head>
<title>My Sample Site</title>
<!-- Comment in layout -->
</head>
<body>
<%= yield %>
<% link_to "layout_block_link.html" do %>
Block link text
<% end %>
</body>
</html>

View file

@ -0,0 +1,4 @@
---
layout: layout
---
Hello World

View file

@ -0,0 +1,4 @@
---
layout: layout
---
Hello World