From f68098c7fc29385a6053dc69f4e35716856148b3 Mon Sep 17 00:00:00 2001 From: Aaron Broder Date: Thu, 8 May 2014 12:04:54 -0700 Subject: [PATCH] Add test for using where filter on collections --- features/collections.feature | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/features/collections.feature b/features/collections.feature index 821ae64f..8b69ab67 100644 --- a/features/collections.feature +++ b/features/collections.feature @@ -94,3 +94,15 @@ Feature: Collections 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" + + Scenario: Filter documents by where + Given I have an "index.html" page that contains "{% assign items = site.methods | where: 'whatever','foo.bar' %}Item count: {{ items.size }}" + 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 "Item count: 1" in "_site/index.html"