Add feature for the "--unsupported" flag
Also make step definitions a little more generic.
This commit is contained in:
parent
46a5ab99f9
commit
1997281449
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue