Add tests for ascii slugify mode
This commit is contained in:
parent
e823ac5180
commit
487631e935
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue