Add feature for the "--unsupported" flag

Also make step definitions a little more generic.
This commit is contained in:
maul.esel 2014-04-07 15:46:21 +02:00
parent 46a5ab99f9
commit 1997281449
2 changed files with 8 additions and 3 deletions

View File

@ -143,7 +143,13 @@ Feature: Create sites
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
When I run jekyll with "--unpublished"
Then the _site directory should exist
And the "_site/index.html" file should exist
And the "_site/secret.html" file should exist

View File

@ -130,9 +130,8 @@ Given /^I have a configuration file with "([^\"]*)" set to:$/ do |key, table|
end
end
When /^I run jekyll$/ do
run_jekyll_build
When /^I run jekyll(?: with "(.+)")?$/ do |opt|
run_jekyll_build(opt)
end
When /^I run jekyll in safe mode$/ do