fix location of permalink test post
This commit is contained in:
parent
47a894cebf
commit
d0fbfca205
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue