add a cucumber feature to test "published" for pages

This commit is contained in:
maul.esel 2013-09-02 13:03:16 +02:00
parent 75854b5d0b
commit eded314bb1
1 changed files with 8 additions and 0 deletions

View File

@ -139,3 +139,11 @@ Feature: Create sites
When I run jekyll
Then the _site/test directory should exist
And I should see "some other stuff" in "_site/test/index.html"
Scenario: Basic site with unpublished page
Given I have an "index.html" page with title "index" that contains "Published page"
And I have a "secret.html" page with published "false" that contains "Unpublished page"
When I run jekyll
Then the _site directory should exist
And the "_site/index.html" file should exist
But the "_site/secret.html" file should not exist