Add test for document.output.

Test for ref: 00f21ee93c
Closes #2232.
This commit is contained in:
Parker Moore 2014-05-06 15:27:13 -04:00
parent fa27132025
commit ea054ef149
1 changed files with 12 additions and 0 deletions

View File

@ -82,3 +82,15 @@ Feature: Collections
When I run jekyll build
Then the _site directory should exist
And I should see "All documents: _methods/configuration.md _methods/sanitized_path.md _methods/site/generate.md _methods/site/initialize.md _methods/um_hi.md" in "_site/index.html"
Scenario: Documents have an output attribute, which is the converted HTML
Given I have an "index.html" page that contains "First document's output: {{ site.documents.first.output }}"
And I have fixture collections
And I have a "_config.yml" file with content:
"""
collections:
- methods
"""
When I run jekyll build
Then the _site directory should exist
And I should see "First document's output: <p>Use <code>Jekyll.configuration</code> to build a full configuration for use w/Jekyll.</p>\n\n<p>Whatever: foo.bar</p>" in "_site/index.html"