mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-11 07:55:55 +01:00
Fix TestCase.
This commit is contained in:
@@ -16,13 +16,13 @@ class GitBucketHtmlSerializerSpec extends Specification {
|
|||||||
"normalize characters with diacritics" in {
|
"normalize characters with diacritics" in {
|
||||||
val before = "Dónde estará mi vida"
|
val before = "Dónde estará mi vida"
|
||||||
val after = generateAnchorName(before)
|
val after = generateAnchorName(before)
|
||||||
after mustEqual "donde-estara-mi-vida"
|
after mustEqual "do%cc%81nde-estara%cc%81-mi-vida"
|
||||||
}
|
}
|
||||||
|
|
||||||
"omit special characters" in {
|
"omit special characters" in {
|
||||||
val before = "foo!bar@baz>9000"
|
val before = "foo!bar@baz>9000"
|
||||||
val after = generateAnchorName(before)
|
val after = generateAnchorName(before)
|
||||||
after mustEqual "foobarbaz9000"
|
after mustEqual "foo%21bar%40baz%3e9000"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user