Sha256: e0e19b9db22d6e4072cec8c2bc67d434a1d738521ed6d16aea6c16dce8e8c12d

Contents?: true

Size: 1.02 KB

Versions: 8

Compression:

Stored size: 1.02 KB

Contents

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 | 3/27/2009 | 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 | 3/27/2009 | default | Not baked yet. |
    When I run jekyll
    Then the _site directory should exist
    And the "_site/recipe.html" file should not exist

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jekyll-1.0.2 features/drafts.feature
jekyll-1.0.1 features/drafts.feature
jekyll-1.0.0 features/drafts.feature
jekyll-1.0.0.rc1 features/drafts.feature
jekyll-1.0.0.beta4 features/drafts.feature
jekyll-1.0.0.beta3 features/drafts.feature
jekyll-1.0.0.beta2 features/drafts.feature
jekyll-1.0.0.beta1 features/drafts.feature