From f606d9339b40f4e442834da5f11018334de63a13 Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Sun, 30 Jun 2013 17:36:10 +0200 Subject: [PATCH] add features to test source and dest matching --- features/site_configuration.feature | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/features/site_configuration.feature b/features/site_configuration.feature index 706e5b66..80a4b50b 100644 --- a/features/site_configuration.feature +++ b/features/site_configuration.feature @@ -18,6 +18,28 @@ Feature: Site configuration Then the _mysite directory should exist And I should see "Changing destination directory" in "_mysite/index.html" + Scenario: Similarly named source and destination + Given I have a blank site in "mysite_source" + And I have an "mysite_source/index.html" file that contains "html" + And I have a configuration file with: + | key | value | + | source | mysite_source | + | destination | mysite | + When I run jekyll + Then the mysite directory should exist + And I should see "html" in "mysite/index.html" + + Scenario: Similarly named source and destination 2 + Given I have a blank site in "mysite" + And I have an "mysite/index.html" file that contains "html" + And I have a configuration file with: + | key | value | + | source | mysite | + | destination | mysite_dest | + When I run jekyll + Then the mysite_dest directory should exist + And I should see "html" in "mysite_dest/index.html" + Scenario: Exclude files inline 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"