From 1f6940feb2da4f804b7acf0141512d8ad31affa9 Mon Sep 17 00:00:00 2001 From: duritong Date: Fri, 24 Apr 2009 10:06:26 +0200 Subject: [PATCH] Added cucumber feature for the exclude option this should cover the basic idea behind the exclude feature. --- features/site_configuration.feature | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/features/site_configuration.feature b/features/site_configuration.feature index e2395b76..a8b11bb7 100644 --- a/features/site_configuration.feature +++ b/features/site_configuration.feature @@ -18,6 +18,16 @@ Feature: Site configuration Then the _mysite directory should exist And I should see "Changing destination directory" in "_mysite/index.html" + Scenario: Exclude files + Given I have an "Rakefile" file that contains "I want to be excluded" + And I have an "README" file that contains "I want to be excluded" + And I have an "index.html" file that contains "I want to be included" + And I have a configuration file with "exclude" set to "Rakefile", "README" + When I run jekyll + Then I should see "I want to be included" in "_site/index.html" + And the "_site/Rakefile" file should not exist + And the "_site/README" file should not exist + Scenario: Use RDiscount for markup Given I have an "index.markdown" page that contains "[Google](http://google.com)" And I have a configuration file with "markdown" set to "rdiscount"