From a076ce070284702b108fd1e128b0de3011df948c Mon Sep 17 00:00:00 2001 From: Tom Preston-Werner Date: Mon, 11 Jan 2010 22:04:39 -0800 Subject: [PATCH] add markdown feature test --- features/markdown.feature | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 features/markdown.feature diff --git a/features/markdown.feature b/features/markdown.feature new file mode 100644 index 00000000000..ddb472f67a4 --- /dev/null +++ b/features/markdown.feature @@ -0,0 +1,30 @@ +Feature: Markdown + As a hacker who likes to blog + I want to be able to make a static site + In order to share my awesome ideas with the interwebs + + Scenario: Markdown in list on index + Given I have a configuration file with "paginate" set to "5" + And I have an "index.html" page that contains "Index - {% for post in site.posts %} {{ post.content }} {% endfor %}" + And I have a _posts directory + And I have the following post: + | title | date | content | type | + | Hackers | 3/27/2009 | # My Title | markdown | + When I run jekyll + Then the _site directory should exist + And I should see "Index" in "_site/index.html" + And I should see "

My Title

" in "_site/2009/03/27/hackers.html" + And I should see "

My Title

" in "_site/index.html" + + Scenario: Markdown in pagination on index + Given I have a configuration file with "paginate" set to "5" + And I have an "index.html" page that contains "Index - {% for post in paginator.posts %} {{ post.content }} {% endfor %}" + And I have a _posts directory + And I have the following post: + | title | date | content | type | + | Hackers | 3/27/2009 | # My Title | markdown | + When I run jekyll + Then the _site directory should exist + And I should see "Index" in "_site/index.html" + And I should see "

My Title

" in "_site/index.html" + \ No newline at end of file