default to no layout; makes dealing with binary files easier

This commit is contained in:
Tom Preston-Werner
2008-11-05 18:12:38 -08:00
parent f4d8dcb64d
commit c1e31feeec
4 changed files with 7 additions and 21 deletions

View File

@@ -30,7 +30,7 @@ class TestPost < Test::Unit::TestCase
p = Post.allocate
p.read_yaml(File.join(File.dirname(__FILE__), *%w[source posts]), "2008-10-18-foo-bar.textile")
assert_equal({"title" => "Foo Bar"}, p.data)
assert_equal({"title" => "Foo Bar", "layout" => "default"}, p.data)
assert_equal "\nh1. {{ page.title }}\n\nBest *post* ever", p.content
end