Add cucumber scenarios for markdown pages with erb layout
These are tests for middleman/middleman#860.
This commit is contained in:
parent
a52effc119
commit
b234deb540
4 changed files with 32 additions and 1 deletions
|
@ -10,4 +10,14 @@ Feature: Markdown support
|
|||
Scenario: Markdown extensions (Maruku)
|
||||
Given the Server is running at "markdown-app"
|
||||
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">'
|
||||
|
|
|
@ -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>
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
layout: layout
|
||||
---
|
||||
Hello World
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
layout: layout
|
||||
---
|
||||
Hello World
|
Loading…
Reference in a new issue