Add tests for ascii slugify mode

This commit is contained in:
Jussi Kinnula
2016-03-29 09:07:30 +03:00
parent e823ac5180
commit 487631e935

View File

@@ -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