mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-31 09:48:30 -05:00
When a post has a title that contains a slash, such as 'This is my cool blog post part 1/2', convert the slash to a dash so that the post filename is created correctly. Fixes issue #680
10 lines
282 B
Ruby
10 lines
282 B
Ruby
require 'helper'
|
|
require 'jekyll/migrators/wordpressdotcom'
|
|
|
|
class TestWordpressDotComMigrator < Test::Unit::TestCase
|
|
should "clean slashes from slugs" do
|
|
test_title = "blogs part 1/2"
|
|
assert_equal("blogs-part-1-2", Jekyll::WordpressDotCom.sluggify(test_title))
|
|
end
|
|
end
|