Merge pull request #1201 from adamniedzielski/skip-transliteration-tests-rugged

Skip tests for transliteration for adapters different than grit
This commit is contained in:
Dawa Ometto
2017-03-11 20:35:53 +01:00
committed by GitHub
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -30,6 +30,11 @@ context "Frontend" do
# and in file names saved to disk
# urls are not case sensitive
assert_equal 'Title-Space', 'Title Space'.to_url
end
test "translation" do
# we transliterate only when adapter is grit
return if defined?(Gollum::GIT_ADAPTER) && Gollum::GIT_ADAPTER != 'grit'
# ascii only file names prevent UTF8 issues
# when using git repos across operating systems
+3
View File
@@ -90,6 +90,9 @@ context "Frontend Unicode support" do
end
test 'transliteration' do
# we transliterate only when adapter is grit
return if defined?(Gollum::GIT_ADAPTER) && Gollum::GIT_ADAPTER != 'grit'
# TODO: Remove to_url once write_page changes are merged.
@wiki.write_page('ééééé'.to_url, :markdown, '한글 text', commit_details)
page = @wiki.page('eeeee')