diff --git a/test/source/posts/2008-12-03-permalinked-post.textile b/test/source/_posts/2008-12-03-permalinked-post.textile similarity index 100% rename from test/source/posts/2008-12-03-permalinked-post.textile rename to test/source/_posts/2008-12-03-permalinked-post.textile diff --git a/test/test_post.rb b/test/test_post.rb index cbf374ed..a61609df 100644 --- a/test/test_post.rb +++ b/test/test_post.rb @@ -29,7 +29,7 @@ class TestPost < Test::Unit::TestCase def test_permalink p = Post.allocate p.process("2008-12-03-permalinked-post.textile") - p.read_yaml(File.join(File.dirname(__FILE__), *%w[source posts]), "2008-12-03-permalinked-post.textile") + p.read_yaml(File.join(File.dirname(__FILE__), *%w[source _posts]), "2008-12-03-permalinked-post.textile") assert_equal "my_category/permalinked-post", p.permalink end @@ -37,7 +37,7 @@ class TestPost < Test::Unit::TestCase def test_dir_respects_permalink p = Post.allocate p.process("2008-12-03-permalinked-post.textile") - p.read_yaml(File.join(File.dirname(__FILE__), *%w[source posts]), "2008-12-03-permalinked-post.textile") + p.read_yaml(File.join(File.dirname(__FILE__), *%w[source _posts]), "2008-12-03-permalinked-post.textile") assert_equal "my_category", p.dir end diff --git a/test/test_site.rb b/test/test_site.rb index 7105671f..ccfd4117 100644 --- a/test/test_site.rb +++ b/test/test_site.rb @@ -19,7 +19,7 @@ class TestSite < Test::Unit::TestCase def test_read_posts @s.read_posts(File.join(@s.source, '_posts')) - assert_equal 3, @s.posts.size + assert_equal 4, @s.posts.size end def test_write_posts