mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-31 17:58:29 -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
11 lines
287 B
Ruby
11 lines
287 B
Ruby
require 'helper'
|
|
require 'jekyll/migrators/wordpress'
|
|
require 'htmlentities'
|
|
|
|
class TestWordpressMigrator < Test::Unit::TestCase
|
|
should "clean slashes from slugs" do
|
|
test_title = "blogs part 1/2"
|
|
assert_equal("blogs-part-1-2", Jekyll::WordPress.sluggify(test_title))
|
|
end
|
|
end
|