Merge pull request #6496 from jekyll/revert-6151-future-collection-liquid-test
Revert "Added direct collection access to future collection item feature test"
This commit is contained in:
commit
0baf586723
|
@ -139,28 +139,6 @@ Feature: Collections
|
||||||
And the _site directory should exist
|
And the _site directory should exist
|
||||||
And the "_site/puppies/fido.html" file should not exist
|
And the "_site/puppies/fido.html" file should not exist
|
||||||
|
|
||||||
Scenario: Hidden collection has document with future date, accessed via Liquid
|
|
||||||
Given I have a _puppies directory
|
|
||||||
And I have the following documents under the puppies collection:
|
|
||||||
| title | date | content |
|
|
||||||
| Rover | 2007-12-31 | content for Rover. |
|
|
||||||
| Fido | 2120-12-31 | content for Fido. |
|
|
||||||
And I have a "_config.yml" file with content:
|
|
||||||
"""
|
|
||||||
collections:
|
|
||||||
puppies:
|
|
||||||
output: false
|
|
||||||
"""
|
|
||||||
And I have a "index.html" page that contains "Newest puppy: {% assign puppy = site.puppies.last %}{{ puppy.title }}"
|
|
||||||
When I run jekyll build
|
|
||||||
Then I should get a zero exit status
|
|
||||||
And the _site directory should exist
|
|
||||||
And I should see "Newest puppy: Rover" in "_site/index.html"
|
|
||||||
When I run jekyll build --future
|
|
||||||
Then I should get a zero exit status
|
|
||||||
And the _site directory should exist
|
|
||||||
And I should see "Newest puppy: Fido" in "_site/index.html"
|
|
||||||
|
|
||||||
Scenario: All the documents
|
Scenario: All the documents
|
||||||
Given I have an "index.html" page that contains "All documents: {% for doc in site.documents %}{{ doc.relative_path }} {% endfor %}"
|
Given I have an "index.html" page that contains "All documents: {% for doc in site.documents %}{{ doc.relative_path }} {% endfor %}"
|
||||||
And I have fixture collections
|
And I have fixture collections
|
||||||
|
|
Loading…
Reference in New Issue