From ea054ef1491843ad78846b85b115fb3eba7e5f88 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Tue, 6 May 2014 15:27:13 -0400 Subject: [PATCH] Add test for document.output. Test for ref: 00f21ee93ca28913ef027caef893488d2f93ff75 Closes #2232. --- features/collections.feature | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/features/collections.feature b/features/collections.feature index 402e7dab..821ae64f 100644 --- a/features/collections.feature +++ b/features/collections.feature @@ -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:

Use Jekyll.configuration to build a full configuration for use w/Jekyll.

\n\n

Whatever: foo.bar

" in "_site/index.html"