Sha256: 2e819444b725d3a938d934c624ecd0320d5669ad226c3e6a93182bfefa6b7289

Contents?: true

Size: 1.41 KB

Versions: 2

Compression:

Stored size: 1.41 KB

Contents

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 monad
    Then the _site directory should exist
    And I should see "Index" in "_site/index.html"
    And I should see "<h1 id='my_title'>My Title</h1>" in "_site/2009/03/27/hackers.html"
    And I should see "<h1 id='my_title'>My Title</h1>" 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 monad
    Then the _site directory should exist
    And I should see "Index" in "_site/index.html"
    And I should see "<h1 id='my_title'>My Title</h1>" in "_site/index.html"
    

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
monad-0.0.2 features/markdown.feature
monad-0.0.1 features/markdown.feature