Revision 700fb7cb6d08a7f799078787a266f5f7b4a21358 authored by Matt Rogers on 29 October 2013, 03:38:29 UTC, committed by Matt Rogers on 29 October 2013, 03:38:29 UTC
1 parent 1d72b13
Raw File
drafts.feature
Feature: Draft Posts
  As a hacker who likes to blog
  I want to be able to preview drafts locally
  In order to see if they look alright before publishing

  Scenario: Preview a draft
    Given I have a configuration file with "permalink" set to "none"
    And I have a _drafts directory
    And I have the following draft:
      | title  | date      | layout  | content        |
      | Recipe | 2009-03-27 | default | Not baked yet. |
    When I run jekyll with drafts
    Then the _site directory should exist
    And I should see "Not baked yet." in "_site/recipe.html"

  Scenario: Don't preview a draft
    Given I have a configuration file with "permalink" set to "none"
    And I have an "index.html" page that contains "Totally index"
    And I have a _drafts directory
    And I have the following draft:
      | title  | date      | layout  | content        |
      | Recipe | 2009-03-27 | default | Not baked yet. |
    When I run jekyll
    Then the _site directory should exist
    And the "_site/recipe.html" file should not exist
back to top