test overriding default excludes

This commit is contained in:
Ashwin Maroli 2017-02-05 01:56:49 +05:30
parent 2813b9c039
commit eb36ea095f
1 changed files with 2 additions and 0 deletions

View File

@ -44,9 +44,11 @@ Feature: Site configuration
Given I have an "Rakefile" file that contains "I want to be excluded" 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" And I have an "README" file that contains "I want to be excluded"
And I have an "index.html" file that contains "I want to be included" And I have an "index.html" file that contains "I want to be included"
And I have a "Gemfile" file that contains "gem 'include-me'"
And I have a configuration file with "exclude" set to "['Rakefile', 'README']" And I have a configuration file with "exclude" set to "['Rakefile', 'README']"
When I run jekyll build When I run jekyll build
Then I should see "I want to be included" in "_site/index.html" Then I should see "I want to be included" in "_site/index.html"
And the "_site/Gemfile" file should exist
And the "_site/Rakefile" file should not exist And the "_site/Rakefile" file should not exist
And the "_site/README" file should not exist And the "_site/README" file should not exist