Allow collections to have documents that have no file extension

This commit is contained in:
Parker Moore
2016-02-19 13:31:18 -08:00
parent 3b93625a8f
commit 3aa80b7d04
5 changed files with 22 additions and 17 deletions

View File

@@ -12,7 +12,7 @@ class TestDocument < JekyllUnitTest
"collections" => ["methods"]
})
@site.process
@document = @site.collections["methods"].docs.first
@document = @site.collections["methods"].docs.detect {|d| d.relative_path == "_methods/configuration.md" }
end
should "exist" do
@@ -49,7 +49,7 @@ class TestDocument < JekyllUnitTest
setup do
@site = fixture_site({"collections" => ["methods"]})
@site.process
@document = @site.collections["methods"].docs.last
@document = @site.collections["methods"].docs.detect {|d| d.relative_path == "_methods/yaml_with_dots.md" }
end
should "know its data" do