Always render collections, just don't always write them

This commit is contained in:
Parker Moore
2014-04-24 12:50:08 -04:00
parent 3a6ad0737c
commit 0dc680df0b
3 changed files with 35 additions and 19 deletions

View File

@@ -107,6 +107,25 @@ class TestCollections < Test::Unit::TestCase
end
end
context "with a collection with metadata" do
setup do
@site = fixture_site({
"collections" => {
"methods" => {
"foo" => "bar",
"baz" => "whoo"
}
}
})
@site.process
@collection = @site.collections["methods"]
end
should "extract the configuration collection information as metadata" do
assert_equal @collection.metadata, {"foo" => "bar", "baz" => "whoo"}
end
end
context "in safe mode" do
setup do
@site = fixture_site({