fix location of permalink test post

This commit is contained in:
Tom Preston-Werner 2008-12-21 22:12:07 -08:00
parent 47a894cebf
commit d0fbfca205
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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