From eded314bb134a169c940fc3d1771b2cba9bb2af9 Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Mon, 2 Sep 2013 13:03:16 +0200 Subject: [PATCH] add a cucumber feature to test "published" for pages --- features/create_sites.feature | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/features/create_sites.feature b/features/create_sites.feature index 5d22397b..0f3bb778 100644 --- a/features/create_sites.feature +++ b/features/create_sites.feature @@ -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