mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
Add tests for ascii slugify mode
This commit is contained in:
@@ -182,6 +182,10 @@ class TestUtils < JekyllUnitTest
|
||||
assert_equal "the-_config.yml-file", Utils.slugify("The _config.yml file?", mode: "pretty")
|
||||
end
|
||||
|
||||
should "replace everything else but ASCII characters" do
|
||||
assert_equal "the-config.yml-file", Utils.slugify("The _config.yml file?", mode: "ascii")
|
||||
end
|
||||
|
||||
should "only replace whitespace if mode is raw" do
|
||||
assert_equal "the-_config.yml-file?", Utils.slugify("The _config.yml file?", mode: "raw")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user