Properly handle titles with trailing punctuation

This commit is contained in:
Chris Frederick
2014-09-01 13:25:38 +09:00
parent 93f63df172
commit a5e51cfdbe
3 changed files with 19 additions and 4 deletions

View File

@@ -213,18 +213,18 @@ class TestDocument < Test::Unit::TestCase
"collections" => {
"slides" => {
"output" => true,
"permalink" => "/slides/test/:title"
"permalink" => "/slides/:title"
}
},
"source" => source_dir,
"destination" => dest_dir
}))
@site.process
@document = @site.collections["slides"].docs[0]
@document = @site.collections["slides"].docs[3]
end
should "produce the right URL" do
assert_equal "/slides/test/example-slide", @document.url
assert_equal "/slides/so-what-is-jekyll-exactly", @document.url
end
end