Fix TestCase.

This commit is contained in:
takezoe
2014-02-20 03:40:06 +09:00
parent 8536824d7e
commit bb9a23fe0f

View File

@@ -16,13 +16,13 @@ class GitBucketHtmlSerializerSpec extends Specification {
"normalize characters with diacritics" in {
val before = "Dónde estará mi vida"
val after = generateAnchorName(before)
after mustEqual "donde-estara-mi-vida"
after mustEqual "do%cc%81nde-estara%cc%81-mi-vida"
}
"omit special characters" in {
val before = "foo!bar@baz>9000"
val after = generateAnchorName(before)
after mustEqual "foobarbaz9000"
after mustEqual "foo%21bar%40baz%3e9000"
}
}
}