From d8bdb6d3666c8428cd34d19f1503fe4bae518f8b Mon Sep 17 00:00:00 2001 From: Tom Preston-Werner Date: Wed, 5 Nov 2008 17:04:56 -0800 Subject: [PATCH] fix tests that broke when 2nd arg was added to Post#add_layout --- test/test_post.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_post.rb b/test/test_post.rb index 9228839d..6c0af4fe 100644 --- a/test/test_post.rb +++ b/test/test_post.rb @@ -45,7 +45,7 @@ class TestPost < Test::Unit::TestCase def test_add_layout p = Post.new(File.join(File.dirname(__FILE__), *%w[source posts]), "2008-10-18-foo-bar.textile") layouts = {"default" => "<<< {{ content }} >>>"} - p.add_layout(layouts) + p.add_layout(layouts, {"site" => {"posts" => []}}) assert_equal "<<<

Foo Bar

\n\n\n\t

Best post ever

>>>", p.output end @@ -55,7 +55,7 @@ class TestPost < Test::Unit::TestCase p = Post.new(File.join(File.dirname(__FILE__), *%w[source posts]), "2008-10-18-foo-bar.textile") layouts = {"default" => "<<< {{ content }} >>>"} - p.add_layout(layouts) + p.add_layout(layouts, {"site" => {"posts" => []}}) p.write(dest_dir) end end \ No newline at end of file