Assert existence of <collection>.files (#6907)

Merge pull request 6907
This commit is contained in:
Roger Rohrbach 2018-04-05 13:26:29 -07:00 committed by jekyllbot
parent 568257a192
commit 37b729fd87
1 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,10 @@ class TestCollections < JekyllUnitTest
assert_equal @collection.to_liquid["docs"], []
end
should "have a files attribute" do
assert_equal @collection.to_liquid["files"], []
end
should "have a directory attribute" do
assert_equal @collection.to_liquid["directory"], source_dir("_methods")
end