Merge pull request #992 from maul-esel/consistent-page.url

add leading slash to page.url and post.url
This commit is contained in:
Parker Moore
2013-05-05 13:56:15 -07:00
4 changed files with 6 additions and 3 deletions

View File

@@ -71,8 +71,8 @@ class TestPost < Test::Unit::TestCase
@post.read_yaml(@source, file)
assert_equal "my_category/permalinked-post", @post.permalink
assert_equal "my_category", @post.dir
assert_equal "my_category/permalinked-post", @post.url
assert_equal "/my_category", @post.dir
assert_equal "/my_category/permalinked-post", @post.url
end
context "with CRLF linebreaks" do