mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-28 03:01:03 -04:00
add test for group_by size property
This commit is contained in:
@@ -289,6 +289,14 @@ class TestFilters < JekyllUnitTest
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
should "include the size of each grouping" do
|
||||
@filter.site.process
|
||||
grouping = @filter.group_by(@filter.site.pages, "layout")
|
||||
grouping.each do |g|
|
||||
assert_equal g["items"].size, g["size"], "The size property for '#{g["name"]}' doesn't match the size of the Array."
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context "where filter" do
|
||||
|
||||
Reference in New Issue
Block a user