From 9d4e1697ef65958041d261e8227cf66e70b98caf Mon Sep 17 00:00:00 2001 From: Nick Quaranto Date: Wed, 25 Mar 2009 18:32:26 -0400 Subject: [PATCH] Filling out configuration story --- features/site_configuration.feature | 55 +++++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 2 deletions(-) diff --git a/features/site_configuration.feature b/features/site_configuration.feature index d0656b37..03198a7c 100644 --- a/features/site_configuration.feature +++ b/features/site_configuration.feature @@ -6,15 +6,66 @@ Feature: Site configuration Scenario: Change destination directory Given I have a blank site And I have an "index.html" file that contains "Changing destination directory" - And a configuration file with "site" set to "_mysite" + And I have a configuration file with "site" set to "_mysite" When I run jekyll Then the _mysite directory should exist And I should see "Basic Site" in "_mysite/index.html" Scenario: Use RDiscount for markup + Given I have a blank site + And I have an "index.html" file that contains "[Google](http://google.com)" + And I have a configuration file with "markdown" set to "rdiscount" + When I run jekyll + Then the _site directory should exist + And I should see "Google" in "_site/index.html" + Scenario: Disable auto-regeneration + Given I have a blank site + And I have an "index.html" file that contains "My Awesome Site" + And I have a configuration file with "auto" set to "false" + When I run jekyll + And I change "index.html" to contain "Auto-regenerate off!" + Then the _site directory should exist + And I should see "My awesome site" in "_site/index.html" + Scenario: Run server on a different server port - Scenario: Use no permalink schema + Given I have a blank site + And I have an "index.html" file that contains "Changing Port" + And I have a configuration file with "port" set to "1337" + When I run jekyll + And I go to "http://0.0.0.0:1337" + Then I should see "Changing Port" + + Scenario: Use none permalink schema + Given I have a blank site + And I have a _posts directory + And I have a post titled "None Permalink Schema" for "3/25/2009" that contains "Whoa." + And I have a configuration file with "permalink" set to "none" + When I run jekyll + Then the _site directory should exist + And the _site/posts directory should exist + And the _site/posts/none-permalink-schema.html file should exist + And I should see "Whoa." in "_site/posts/none-permalink-schema.html" + Scenario: Use pretty permalink schema + Given I have a blank site + And I have a _posts directory + And I have a post titled "Pretty Permalink Schema" for "3/25/2009" that contains "Whoa." + And I have a configuration file with "permalink" set to "pretty" + When I run jekyll + Then the _site directory should exist + And the _site/posts directory should exist + And the _site/posts/pretty-permalink-schema directory should exist + And the _site/posts/pretty-permalink-schema/index.html file should exist + And I should see "Whoa." in "_site/posts/pretty-permalink-schema/index.html" + Scenario: Highlight code with pygments +