From 8b5eb0395fa4ffa6deb64b1f308b82f67e34c617 Mon Sep 17 00:00:00 2001 From: Nick Quaranto Date: Wed, 25 Mar 2009 08:26:29 -0400 Subject: [PATCH] Adding plenty of features with just basic scenarios --- features/create_sites.feature | 6 ++++-- features/embed_filters.feature | 10 ++++++++++ features/post_data.feature | 16 ++++++++++++++++ features/site_configuration.feature | 13 +++++++++++++ features/site_data.feature | 11 +++++++++++ 5 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 features/embed_filters.feature create mode 100644 features/post_data.feature create mode 100644 features/site_configuration.feature create mode 100644 features/site_data.feature diff --git a/features/create_sites.feature b/features/create_sites.feature index d07d0c3b..5c6c7765 100644 --- a/features/create_sites.feature +++ b/features/create_sites.feature @@ -1,7 +1,7 @@ Feature: Create sites As a hacker who likes to blog - I want to be able to easily make a static site - In order to share my awesome skills with the interwebs + I want to be able to make a static site + In order to share my awesome ideas with the interwebs Scenario: Basic site Given I have a blank site @@ -38,3 +38,5 @@ Feature: Create sites And the _site/posts/2009/03/24/hackers.html file should exist And I should see "My First Exploit" in "_site/posts/2009/03/24/hackers.html" And I should see "Basic Site with Layout and a Post: My First Exploit" in "_site/index.html" + + Scenario: Basic site with include tag diff --git a/features/embed_filters.feature b/features/embed_filters.feature new file mode 100644 index 00000000..bdf59004 --- /dev/null +++ b/features/embed_filters.feature @@ -0,0 +1,10 @@ +Feature: Embed filters + As a hacker who likes to blog + I want to be able to transform text inside a post or page + In order to perform cool stuff in my posts + + Scenario: Convert date to XML schema + Scenario: Escape text for XML + Scenario: Calculate number of words + Scenario: Convert an array into a sentence + Scenario: Textilize a given string diff --git a/features/post_data.feature b/features/post_data.feature new file mode 100644 index 00000000..8a8de7a0 --- /dev/null +++ b/features/post_data.feature @@ -0,0 +1,16 @@ +Feature: Post data + As a hacker who likes to blog + I want to be able to embed data into my posts + In order to make the posts slightly dynamic + + Scenario: Use post.title variable + Scenario: Use post.url variable + Scenario: Use post.date variable + Scenario: Use post.id variable + Scenario: Use post.categories variable when categories are in folders + Scenario: Use post.categories variable when categories are in YAML + Scenario: Use post.categories variable when category is in YAML + Scenario: Use post.topics variable + Scenario: Use post.content variable + Scenario: Disable a post from being published + Scenario: Use a custom variable diff --git a/features/site_configuration.feature b/features/site_configuration.feature new file mode 100644 index 00000000..9351b3f9 --- /dev/null +++ b/features/site_configuration.feature @@ -0,0 +1,13 @@ +Feature: Site configuration + As a hacker who likes to blog + I want to be able to configure jekyll + In order to make setting up a site easier + + Scenario: Change destination directory + Scenario: Use RDiscount for markup + Scenario: Use Maruku for markup + Scenario: Disable auto-regeneration + Scenario: Run server on a different server port + Scenario: Use no permalink schema + Scenario: Use pretty permalink schema + Scenario: Highlight code with pygments diff --git a/features/site_data.feature b/features/site_data.feature new file mode 100644 index 00000000..8a514089 --- /dev/null +++ b/features/site_data.feature @@ -0,0 +1,11 @@ +Feature: Site data + As a hacker who likes to blog + I want to be able to embed data into my site + In order to make the site slightly dynamic + + Scenario: Use page variable in a page + Scenario: Use site.time variable + Scenario: Use site.posts variable + Scenario: Use site.categories variable + Scenario: Use site.categories.life variable + Scenario: Use site.related_posts variable