add test for group_by size property
This commit is contained in:
parent
7542ab51b7
commit
3fbca47b1a
|
@ -289,6 +289,14 @@ class TestFilters < JekyllUnitTest
|
||||||
end
|
end
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
context "where filter" do
|
context "where filter" do
|
||||||
|
|
Loading…
Reference in New Issue